Interestingly the regex cache (data folder Cache/LaTeX/LaTeX.sublime-syntax.rcache
) is 9.4MB! The C++ one is 600K.
I think this is probably what I need to investigate. Most likely restoring all of the syntax memory structures from disk is taking a good chunk of time with LaTeX. This seems also to happen with Objective-C++, although to a lesser degree (5MB).