Sublime Forum

Extremely high CPU usage when sublime is open

#1

Suddenly I noticed my laptop fans running full blast and sublime was persisting at close to 99% CPU.
I have not installed any new plugins or made any changes. The only plugins I have are packagecontrol, packageresourceviewer, terminal and jscustom.

I am on windows 10 on an amd laptop.
Now it seems to have stopped.
Is it possible there was some background update being installed in sublime that caused this?

0 Likes

#2

You can see in the bottom the 88% indicates that ST is still indexing your files. This is used for Foto-Definition/reference as well as auto-complete. You can check the status under Help > Indexing Status....

0 Likes

#3

Oh yes I forgot about that. It must happen a lot with node_modes folders? It might be good to have the word indexing in the status bar.

0 Likes

#4

If you’re not relying on the index from node_modules you can easily exclude it from being indexed using the "index_exclude_patterns" setting or by using git and keeping "index_exclude_gitignore" enabled.

0 Likes

#5

How often does it execute(ST index my files)?

0 Likes

#6

The indexer runs on any new or changed files that it finds. If the syntax highlighting changes, as it usually does with an update, then the files using that syntax need to be reindexed.

0 Likes