bugGNU nano - Bugs: bug #57890, poor performance on extremely long...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #57890: poor performance on extremely long lines when softwrap is set

Submitter:  Saagar Jha <saagarjha>
Submitted:  Tue 25 Feb 2020 11:12:02 AM UTC
   
 
Severity:  2 - Minor Status:  None
Assigned to:  None Open/Closed:  Closed

Sun 23 May 2021 02:51:23 PM UTC, comment #4: 

Any patch to improve the efficiency of softwrapping is welcome.  But personally I am not going to work on this.

Benno Schulenberg <bens>
Group administrator
Tue 22 Dec 2020 03:57:12 PM UTC, comment #3: 

An autotoggling-off feature is not going to happen.  That would be a misfeature à la Windows: trying to be clever instead of doing what the user ordered and expects.

The --indicator option added an 'extrarows' element to each linestruct.  Maybe that can be used to speed up scrolling through the file when softwrap is on.  (It won't be of use to speed up rendering, I think.)

Benno Schulenberg <bens>
Group administrator
Sat 19 Dec 2020 04:17:00 PM UTC, comment #2: 

Because softwrap is my default, I sometimes run into this when opening a file with a very long line.

Maybe it is worth checking for a autotoggle value, where if a file is opened in softwrap, to check all the line lengths, and if any 1 line exceeds the autotoggle length, it automatically switches off softwrap.

That would come at a cost of time when opening any file in softwrap, but it no autotoggle value is specified, it wouldn't activate, so it would be a user's choice.

It is a hack because of a performance issue, so not a fun feature to add...

Peter Passchier <pepa65>
Tue 25 Feb 2020 02:24:36 PM UTC, comment #1: 

Maybe there are ways to handle this better, but... it would involve a lot of reworking of the display routines, because they are all geared to showing each line in full -- the softwrapping is something that was bolted on afterwards.

For lines of pure ASCII up to about two thousand characters it is fast enough.  Only when getting above five thousand characters or so things start to become visibly laggy.  That's good enough for me.

Benno Schulenberg <bens>
Group administrator
Tue 25 Feb 2020 11:12:02 AM UTC, original submission:  

I normally enable softwrap, but when working on a file with a line with over 500,000 characters (don't ask) nano grinds to a halt even when doing things like moving the cursor. Maybe there's some performance left on the table for this edge case, or a way to handle it better?

Saagar Jha <saagarjha>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pepa65 (Posted a comment)
  • -email is unavailable- added by bens (Posted a comment)
  • -email is unavailable- added by saagarjha (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-23 bens Open/ClosedOpen Closed
    2020-02-25 bens Severity3 - Normal 2 - Minor
        SummaryPoor performance on file with long lines when softwrap is set poor performance on extremely long lines when softwrap is set

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code