Skip to content

TabNine suggestions block Sublime for multiple seconds (on popup and selection) #113

@kakra

Description

@kakra

please complete the following information:

  • OS version: Gentoo Linux
  • Editor version: Sublime Text 3 Build 4113
  • Programming language: Ruby on Rails
  • Tabnine extension version: v3.2.0

Issue Details:

During auto-complete (just when the popup is supposed to show up), Sublime often blocks short amounts of time, sometimes several seconds. Looking at the process monitor, you can see that TabNine hangs in disk state and spikes IO usage. This blocking makes working and typing in code unusable. Selecting a suggested TabNine entry also blocks the editor for up to multiple seconds sometimes. This blocking happens like every 3-4 keypresses.

Background: metrics.db is stored on a btrfs partition which uses copy-on-write. If I recreate .config/TabNine with chattr +C and copy all contents from a backup, this file inherits the nocow-attribute. With this, Sublime feels a little bit smoother but it's still not very good.

TabNine should probably improve its IO patterns, and be copy-on-write friendly.

The system has 24 GB of RAM, and 11+ GB of that a available memory (around 10 GB of that is page cache). So this is not a low memory condition.

gz#6848

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions