I looked at several other topics on high CPU usage, but none of them seemed to fit what I am seeing.
I am running Build 3177 on Ubuntu 18.04 with no extra plugins installed.
Opening Sublime Text will cause the CPU to vary from 30-200% or so for an hour upon opening the project I have setup. During this time, the overall system use is very sluggish. The RAM usage will eventually get up to around 3GB. After it finally calms down on CPU usage, the RAM usage stays at the high level. The CPU usage will stay low, and the system will behave normally after that as long as I do not close and reopen it. A close and reopen starts the process over again. This all seems to be a bit excessive for a text editor both in processor and RAM usage.
It is not indexing while the CPU load is high as the Indexing status says idle for the whole time.
There are some folders in the project that have a large number of subfolders and files in them. I have placed them into the binary_file_patterns to prevent them from being indexed (as mentioned in a different post), and based on the Idle indexing status, I believe that Sublime Text is not indexing them. I do not need those folders to be indexed, I just want to be able to get to the source files from the sidebar. (There are other folders that I would definitely like to be indexed though).
Just to make sure the problem is not indexing related at all, I also turned indexing completely off and restarted, and the problem was still there.
Looking in the console window while this is going on, the folders that are not getting indexed are getting scanned (lots of symbolic link messages (i.e. “scan: … has been seen before, skipping (using inode) …” type messages.
Is this always going to be the case with Sublime Text where if I want a folder in my project that has lots of other files and subfolders that are not ever going to be indexed, then when I open the program it will make my PC unresponsive for an hour while it scans the non-indexed folders?
Do I need to exclude folders like that from the sidebar if I do not want an hour or so of bad system performance every time I open it? That would be exceptionally annoying to have to use a separate file browser window and drag and drop those files into Sublime Text since it is just a tree hierarchy.
If I let the folder in question be indexed by Sublime Text, after it finished, would restarting Sublime Text not have the problem since the folder is in the index, or would it just take longer in the indexing portion? Would that at least get rid of the 3GB of RAM usage?