-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
After upgrading LustyJuggler from an old vim.org version, I noticed that there was a notable lag between pressing the key to run :LustyJuggler and the menu actually appearing, but only in MacVim - on the command line it was fast. Long story short:
- Stubbing out
needs_script?fixed the lag (regardless of the return value). - The lag doesn't come from time spent actually running the script - profiling showed that it always exited promptly.
- Instruments suggests that the time is spent redrawing (even though the output is supposedly being redirected). Since
needs_script?is executed 7 times for each key mapping, it would make sense for the lag caused by this to be noticeable. - This may or may not be related, but if the call to
print_buffer_listis commented out, I get a list of bindings for some reason. I didn't figure out which command is causing that, but it seems odd.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels