Sublime Forum

AMPscript Syntax Highlighter upgrade performance issue

#1

Hello, everyone!
I’ve decided to share a problem and solution I stumbled upon today and I hope this would be of help to someone else!
Today I restarted my Sublime and I noticed that the performance worsened afterwards. I came on the forum and read a few topics suggesting to look at the indexing and I noticed that on every file save the whole project was re-indexed. Weird.
I decided that this must be related to one of my packages being updated and I checked the Package folders for recently modified files.

~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages/
~/Library/Application\ Support/Sublime\ Text\ 3/Packages/

I noticed that one of the packages that was updated recently is “AMPscript Syntax Highlighter”. I have no idea how it has appeared on my packages list, I can’t remember installing it, but I thought I’d try to disable it.
Well, it worked! You can see the indexing log below. Between jobs 3 and 4 I enabled the package. You can see the difference - ST started indexing all files on every files save.

indexing [job 3]: spawning 1 workers to process 1 / 1 files
indexing [job 3]: indexed 1 files
index "api" collated in 0.03s from 4815 files
index "api" is using 454656 bytes for 4873 symbols across 14315 locations
indexing [job 4]: spawning 1 workers to process 4096 / 4815 files
indexing [job 4]: indexed 4096 files
indexing [job 4]: spawning 1 workers to process 719 / 719 files
indexing [job 4]: indexed 719 files
index "api" collated in 0.02s from 4815 files
index "api" is using 536576 bytes for 4873 symbols across 14315 locations
0 Likes