Sublime Forum

Performance Issue with multiple cursors

#1

When using multiple cursors on a single line, performance dramatically slows down as the line becomes longer. This gets to the point where my entire PC will freeze for multiple seconds after every input.

An easy test is to create a short line, then add 10-15+ cursors on that line and begin typing. After a few sentences, sublime will slow down until it grinds to a near halt as the line gets longer.

Sublime jumps up to ~30-40% Cpu usage during the freezes vs 0% - 5% during normal use.

1 Like

#2

Can you give an estimate on how long these “long lines” are? Does the same thing happen with a single caret on that line?

Performance, especially wrt Syntax highlighting, isn’t good for long lines because of how that works. You may find it to perform better if you disable Syntax highlighting.

0 Likes

#3

> 1000 characters on the line. Also no, it doesn’t happen when there is only a single caret on the line.

0 Likes

#4

I also got lagged like this when editing a file with a lot of lines (Plain Text), with a lot of cursors. I am not sure what Sublime Text can do in such cases other than hang.

I would suggest a loading progress bar, allowing the user to cancel the operation, instead of just handing the interface.

0 Likes

#5

This issue hits me pretty much every day. Its most visible to me when using ctrl+d (find_under_expand) to select the same thing multiple times in the same line, such as commas or spaces. Selecting each additional item on a long line is very slow. Using the find dialog selects each instance much quicker, but using the multiple selections is slow.

0 Likes