Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

Alt+Home menu SLOW on LFNs with 9+ characters

Recommended Posts

dandv    0

Have a file called 'file1234.bug' and another one called 'file12345.bug'.

In NDN.EXT, create the following entry:

bug [>1 Menu item 1
     echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
    >1 Menu item 1
    echo menu item 1
]

 

Press Alt+Home on both file and notice the difference in speed, which is proportional to the number of menu items.

I'm very curious as to why this happens! My wild guess is that some macros like %X are expanded beforehand?

 

If you have files with LFNs in the current dir, pressing F2 to launch the user menu will also be very slow (3 seconds on a 3.2GHz machine for building a menu from a <5k file)

 

Hope that helps,

Dan

Share this post


Link to post
Share on other sites

hi!

 

i cannot see any special time delays on the default NDN menu files or your example with the extension file

 

but, it's very possible that a bigger menu file delays longer, as every line will be parsed for expandable macros, which is 'heavy' work on strings for every line

 

there's nothing much to do here i am afraid

 

Stefan / AH

Share this post


Link to post
Share on other sites
dandv    0

Uhm, nope:

 

but, it's very possible that a bigger menu file delays longer, as every line will be parsed for expandable macros, which is 'heavy' work on strings for every line

 

The same menu (F2) takes longer if you press F2 over a file with more than 11 chars vs. a file with less than 11 chars.

 

there's nothing much to do here i am afraid

 

Well this didn't happen in 2.15.3822.

Share this post


Link to post
Share on other sites
dandv    0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×