bugGNU nano - Bugs: bug #51087, since nano-2.8.2, loading a file...

 
 

bug #51087: since nano-2.8.2, loading a file has become twelve percent slower

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 22 May 2017 08:10:29 PM UTC  
 
Severity: 2 - MinorStatus: Works For Me
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 23 May 2017 11:34:24 AM UTC, comment #2:

Problem is only present on an old system. On a modern up-to-date 64-bit system, it makes no difference -- the loading times of a four-million-lines C file are the same for 2.8.2 and 2.8.4: just under seventeen seconds.

I still don't understand how linking in some gnulib time routines can affect the loading of files, but, since it doesn't affect modern systems, let it go.

Benno Schulenberg <bens>
Project Administrator
Tue 23 May 2017 09:51:48 AM UTC, comment #1:

The slowdown is because of $(LIB_CLOCK_GETTIME) having been added to nano_LDADD in src/Makefile.am. Is the gnulib version slower than the glibc one? And why should it be of influence anyway? The only time time() is called is during search, so how can this affect the loading time of a file?

Benno Schulenberg <bens>
Project Administrator
Mon 22 May 2017 08:10:29 PM UTC, original submission:

To verify, create a file of around 700,000 lines of C code. Call it 700.c. Then run 'time /path/to/some/nano 700.c' and type ^X immediately after typing Enter on that command. Then wait. Do this with both 2.6.2 and 2.8.4.

On a 1.6 GHz Atom, the first takes 8.2 seconds, the latter 9.2 seconds. Why?

The slowdown happend between 2.8.2 and 2.8.3. A full second slower. 2.8.1 is slightly faster than 2.8.2 (0.2 seconds) while 2.8.1 is slightly slower (also 0.2 seconds). From 2.6.2 to 2.7.5 it's roughly stable. Trying anything before 2.6.2 is useless because things will hang.

So... What happend between 2.8.2 and 2.8.3?

Benno Schulenberg <bens>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 May 2017 11:34:24 AM UTCbensSeverity3 - Normal=>2 - Minor
      StatusNone=>Works For Me
      Open/ClosedOpen=>Closed
      Summarysince nano-2.6.2, loading a file has become twelve percent slower=>since nano-2.8.2, loading a file has become twelve percent slower

    Back to the top


    Powered by Savane 3.1-cleanup1