I accept that the cause of my problem here is a big folder structure full of all sorts of largish files on old underpowered machine. I don’t consider the problem to be a ‘bug’ in ST3 or anything like that, but I wonder if anyone has tips for me to minimise the problem.
I am currently running ST3 3065 on OSX [MacBook Air 2010, 1.4 GHz Core 2 Duo, 2GB RAM]
So I have a project file that is my reference notes for development. The folder structure is nearly 900MB and contains about 2,900 files. As you can tell a some of the files are moderately large but under the 4MB limit to be included in indexing.
Most of the important files are Markdown .txt files and the .html field generated from those Markdown files. There are some zips and a load of graphic files.
I have added as many of the obviously pointless file types to the exclude pattern list as immediately occurs to me:
"index_exclude_patterns": "*.log","*.pdf","*.png","*.pyc","*.zip","*.jpg","*.gif"],
However if I set Index_files: true,
my poor old MacBook Air 2010 (Core2Duo with 2GB RAM) encounters (97%) CPU usage for 15 to 30 minutes on start up during which ST is almost unusable.
The simple and brutal answer is to set Index_files: false,
and perhaps I will just have to live with that. But it would be nice to have GOTO Definition functional without making ST3 unusable. Perhaps I just have to choose but I was hoping some of you clever people might have a way I could have it all, or at least a workable compromise.
Does anyone have any clever ideas to try to further reduce the impact of index_files? Thanks for any constructive suggestions.