Sublime Forum

Huge resource usage on recent builds with big code repos on macOS

#1

For the past few weeks or so, when I open the large code repo I work on in Sublime on macOS, the resource consumption is very high. eg, CPU has often been around 300-600%, even when I’m not currently editing in Sublime (eg, Chrome is made very laggy sometimes because of Sublime resource consumption).

This didn’t used to be an issue; Sublime had been very performant. Is this a known bug / something that can be fixed?

Thanks,
David

0 Likes

#2

Have you tried disabling third-party packages? http://www.sublimetext.com/docs/3/revert.html

How big is “big”? 100k files? 1M files?

Is the CPU usage high just by opening the folder? Is the indexer running? Do you have a lot of symlinks, or is something in your project frequently creating and tearing down symlinks to large folder trees?

I am just sort of shooting in the dark, trying to guess based on recent work we’ve done.

0 Likes

#3

“Have you tried disabling third-party packages” —
I have not, I could try that

“how big is big” —
$ find . -type f | wc -l
612463

“Is the CPU usage high just by opening the folder…”
on quiting and re-opening, it took 150% CPU for ~30 seconds, then settled down to ~1% idly. It had been at 500% after being open for a few hours. Not a lot of symlinks, but some. This code repo does include build results, which change when I rebuild the code, though no big symlink changes. I don’t know if the indexer is running or how to tell.

Thanks

0 Likes

#4

how can CPU usage ever be over 100%?

0 Likes

#5

Multiple cores pushes CPU usage over 100% regularly. Each core is it’s own 100% slice.

That aside… I’ve used the latest dev build of sublime on a code base of that order of magnitude with absolutely no problems. (With most of the source handled by one of the more complex modes to boot). It really sounds like a third party package problem.

0 Likes