Before I file a bug report on GitHub, and go through the hassle of figuring out steps to reproduce, I’d like to learn whether I can just adjust my preferences to improve performance.
Context: I am using Sublime with two or three windows simultaneously, lately; each in a different project or workspace.
This current workspace only has 11 files open. The longest one of those only has 700k lines; a JavaScript file. That’s not much.
The other two workspaces have more files open, and some of them are really long. Some are … let’s say 6k lines on average. — That’s on me. I get it.
Problem: Saving or closing a file freezes Sublime for an actual second. Seems like some process is going through a large list of files or something. In my view, the other workspaces shouldn’t affect the current one like that.
I’ve had a look at the sublime-workspace files. One, for example, is 18k lines long. It contains lists that are (A) long(er than I need them to be) and (B) contain content that doesn’t belong to this workspace. (I’d say, this is the actual problem I would file a bug report for.)
This following list refers to relevant keys – how can I limit these lists individually?
-
select_symbol.selected_items
(59 items — Not a single one applies to this workspace.) -
select_file.selected_items
(128 files — Again, most from another workspace. The [ File › Open Recent ] menu list isn’t even nearly that long: it only ever shows 12 items.) -
file_history
(128 items) -
command_palette.selected_items
(128 items — If these items are copied from worspace to workspace anyway, I suggest to store them project-independently, once, in ~/.config/ or something.) -
buffers
(only 7 items but starts on line 50 and ends on line 16429)
I didn’t have any crashes or file losses yet, but with freezes like that I feel like that’s only a question of time.
Build 4143
Ubuntu 18.04.6
Intel® Pentium® CPU N4200 @ 1.10GHz × 4
8GB RAM