Slow input processing in presence of large selection
Have a mouse selection that is quite large but still manageable by VTE. ~1M lines of ls -lR
output (~60MB of data) works fine for me.
(See #2504 (comment 2018767) for how to quickly select this much data if "Select All" is limited.)
Notice that the terminal becomes significantly slower. E.g. each keypress to the shell's command line takes about 1-2 seconds to get echoed back.
The time is spent in process_incoming()
-> /* Deselect the current selection if its contents are changed by this insertion. */
-> get_selected_text(selection);
.
The entire new text under the selection area is queried, just to be compared with the existing selection.
Edited by Egmont Koblinger