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

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

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>
Project 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>
Project 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>

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    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.6