alienhard / SublimeAllAutocomplete

Extend Sublime autocompletion to find matches in all open files of the current window
917 stars 110 forks source link

Low performance with long working #43

Closed vasiliy0s closed 7 years ago

vasiliy0s commented 9 years ago

I have performance issue after several minutes of working with ST3. After module disabling and ST fully restarted, issues leave off. In work I can open many JavaScript files.

I'm using ST on my MacMini, but with more powerfull machine under Ubuntu I have not this problem with many files.

magadanskiuchen commented 9 years ago

I'm experiencing the same issue.

It started when I updated Sublime to Build 3083 (earlier builds of SublimeText 3 seem to work OK).

It seems this happens when switching between projects.

alienhard commented 9 years ago

hey @vasiliy0s and @magadanskiuchen

I'm trying to reproduce with Build 3083... I opened 70 files but didn't see a slowdown (on a MacBook Pro).

Do you have a performance issue with ST in general or just with autocomplete? (What exactly is slow?) When you say "many files", is this like 100 open files or is it more?

magadanskiuchen commented 9 years ago

My case it was thousands of files -- most of them were just media assets, but this still seemed to have resulted in rather big memory consumption.

The total size of the folder, which was added to the Sublime Text project was about 7GB.

I do realize that some performance penalty in such cases should be expected but if you can check if a file is binary and skip fully reading (if this is not done already) it this should be good enough solution.

canoeberry commented 7 years ago

You had thousands of files open at once in Sublime?

This plugin only searches files that are currently in views. And it stops the search at 20 views.

alienhard commented 7 years ago

Closing this ticket – slowness hasn't been reported since we added this limit.