Sublime Forum

How to reduce CPU usage when opening folders with many files

#1

My (elderly) notebook shuts down whenever I import/display folders with large number of files in Sublime 3, probably due to high CPU usage and overheating.

Is there an option to disable caching on folder import, or something else I can do to reduce the strain?

0 Likes

#2

"index_files": false

0 Likes

#3

some tips to trouble shooting this and other cases

-1 . use latest ST 3 http://www.sublimetext.com/3
0. revert sublime text ( https://www.sublimetext.com/docs/3/revert.html )

  1. open preferences (main menu - preferences - setting user)
  2. be sure to add the list of all binary file patterns in the preference named “binary_file_patterns” [to exclude a folder use this pattern “node_modules/**”, ]
  3. be sure that no folder that “changes all the time” (for example a log file that is under constant change, or a folder that constantly gets new auto.generated files ) is included in the folder list. Add to this list any file you know may be problematic
  4. add these exclusion list to “index_exclude_patterns”
  5. set “index_workers”: 0,
  6. open the elderly and clean the fan cooler.
  7. additionally you may want to add a subset of folders and see where the indexing gets nasty, look what is in there
0 Likes