bugGNU nano - Bugs: bug #56433, [Task] nano should store each...

 
 

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

bug #56433: [Task] nano should store each compiled file-matching regex

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 03 Jun 2019 02:53:06 PM UTC  
 
Severity:  1 - Wish Status:  None
Assigned to:  None Open/Closed:  Open

Wed 19 Jun 2019 06:38:28 AM UTC, comment #1: 

Brand posted a patch for this (file #47023) on bug #56432, but does not wish to see it applied, as it increases memory usage by some twelve percent (on his system).  If I remember well, this was one reason why I decided to discard the storing of these compiled regexes a long while ago.

Benno Schulenberg <bens>
Project Administrator
Mon 03 Jun 2019 02:53:06 PM UTC, original submission:  

In grab_and_store(), each filename and headerline and magic regex is compiled to check its validity, but the result is discarded, which means that, when trying to match a file to a syntax, all these regexes have to be compiled again (until a match is found), again and again when opening multiple files.  This is a waste of time.  Better use some more mmemry and go faster.

Benno Schulenberg <bens>
Project Administrator

 

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 bens (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.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5