0

I have been having performance troubles with Sublime Text 3 for some time. At times I get an "out of application memory" error, and quitting Sublime fixes the problem.

I tried having fewer folders in the project, which helped a bit, but always it comes to the same thing, quitting Sublime and restarting it gives me some respite.

I noticed the problem occurs for a friend running Sublime Text 2, so it's not a newly introduced problem.

I really like Sublime as an editor, and I'm reluctant to consider other tools, but it's not a good situation.

Any ideas?

I'm on Mac OS X Yosemite, build 3126 of ST3, which I updated yesterday.

Update:

I found the problem. Thanks to this answer How can I exclude a folder from indexing in Sublime Text, while still showing it in the sidebar? Basically I needed to exclude node_modules from the list of files that Sublime watches by adding this to my User Settings:

"binary_file_patterns": [ "*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip", "node_modules/**", "bower_components/**" ]

My Mac has gone from 75% of the CPU soaked up by Sublime (and being quite hot as a result) to being almost completely idle and cool again. I'm a happy camper now :)

Community
  • 1
  • 1
Mikkel
  • 7,693
  • 3
  • 17
  • 31
  • 1
    This might be caused by a plugin — maybe you and your friend both have the same plugin installed. Also, it might be helpful to know what OS you're using. – Fabian Lauer Sep 24 '16 at 12:22
  • 1
    Try [reverting to a freshly installed state](https://www.sublimetext.com/docs/3/revert.html) and see if the problem continues. Please also [edit] your question and tell us your operating system and which build of ST3 you're using. – MattDMo Sep 24 '16 at 13:20

1 Answers1

1

I found the problem. Thanks to this answer How can I exclude a folder from indexing in Sublime Text, while still showing it in the sidebar? Basically I needed to exclude node_modules from the list of files that Sublime watches by adding this to my User Settings:

"binary_file_patterns": [
    "*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip",
    "node_modules/**",
    "bower_components/**"
]

My Mac has gone from 75% of the CPU soaked up by Sublime (and being quite hot as a result) to being almost completely idle and cool again. I'm a happy camper now :)

Mikkel
  • 7,693
  • 3
  • 17
  • 31