Menu

#1721 Rectangular selection is slow on many rows

Bug
closed
5
2015-05-10
2015-05-09
No

Hi,
I was playing with rectangular selection mode (tried to select entire column with >1000 lines) and have noticed that it is slow when there are many rows selected. And CPU usage is high.
In Linux perf top tool I see that it spends most of the time in SelectionRange::Intersect followed by Editor::WndProc. Don't know how useful this info is though.
Thanks,

Discussion

  • Neil Hodgson

    Neil Hodgson - 2015-05-09
    • labels: --> scintilla, rectangular
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2015-05-09

    Interactive selection will recalculate intensely as the selection changes. You may find faster results with increases to the layout and position cache sizes.

     
  • Baurzhan Muftakhidinov

    I uncommented the below variables,

    cache.layout=3

    output.cache.layout=3

    It seems to work faster, but still chokes on several thousands lines of selection. So it recalculates the whole selected segment, even if adding one line to that selection, and there is no way to work this out?

    Thanks,

     
    • Neil Hodgson

      Neil Hodgson - 2015-05-10

      So it recalculates the whole selected segment, even if adding one line to that selection, and there is no way to work this out?

      What mechanism do you suggest?

       
      • Baurzhan Muftakhidinov

        Actually, I have no idea. You can close this ticket. Thanks.

         
  • Neil Hodgson

    Neil Hodgson - 2015-05-10
    • labels: scintilla, rectangular --> scintilla, rectangular, performance
    • status: open --> closed
     

Log in to post a comment.