A quick āhiā as Iāve been off the map for a little while. Returning to the topic at hand (and Iāve commented on this a few times before over the years) Sublimeās performance with either very large files (1Gb+) or files with very long lines (10k+ chars) leaves a lot to be desired. Generally I avoid using Sublime for such tasks and have to fall back to Crisp or Vim which handles pretty much anything with lightning performance.
@gwenzek respectfully disagree on the idea that editors always struggle with huge files. Those whose engines have been coded to handle them well do so with ease and there are numerous examples. Crisp, for example, demand-loads such files so editing an 8Gb file is no problem on a machine with 2G RAM.
Returning to Sublime, setting syntax to āPlain textā often helps, since this effectively disables the heavy duty regexes required for scoping/colouring source, along with disabling wrap & highlight matches on S&R.
Sublime could do with some improvements in its editing engine, along with some adaptive intelligence with respect to handling large files and anything else which might be performance blocking. The reason? Iāve maintained before that Sublime is a tough sell if it canāt be a āswiss army knifeā editor for programmers and hackers. One of the jobs we all need to do from time to time is work with huge files (usually log files in my case) and itās a shame that I canāt be in Sublimeās environment (with its plentiful sugar) when doing so.
By āadaptive intelligenceā I mean things like offering an abort when Sublime is doing anything that blocks the UI for a while - whether that be opening huge files or using plugins that end up doing more work than intended - changing editing engine setup when working with huge files, disabling wrap as mentioned above, disabling āhighlight matchesā for S&R, disabling colourisers etc. Since such parameters vary to some extent with hardware, itād be nice to have thresholds configurable. Such improvements would make Sublime much more robust when working with large files, avoiding the ādohā moments when you do an S&R on a big file and the whole UI locks up while it tries to highlight every match in the file.
Bottom line: Sublime isnāt great with big files. If youāre going to, turn off wrap, set plaintext and turn off highlight matches on S&R dialogs. Iād love to see some work in this area and though I know itās a chunk of work it would secure Sublime as the clear choice for programmers and hackers expecting high performance, powerful editing across all text file types and sizes.
