Platform macOS
Terminal software ghostty
Found this issue during nushell/nushell#15270
Steps to reproduce
- type in
use std <tab>
- hold ctrl-p/ctrl-n down for a while
rustc optimized nu release performs noticeably better.
Basically the menu next/prev event will trigger the parsing of the cli, which involves dozens of parse_module_file calls.
I guess it has something to do with the highlighting. But since the cli text doesn't change by those events (maybe I missed some config here to make it happen), I think it should be optimized.
Typing in cli after use std is also not very responsive due to the same reason, but that is probably harder to fix.
Platform macOS
Terminal software ghostty
Found this issue during nushell/nushell#15270
Steps to reproduce
use std <tab>rustc optimized nu release performs noticeably better.
Basically the menu next/prev event will trigger the parsing of the cli, which involves dozens of
parse_module_filecalls.I guess it has something to do with the highlighting. But since the cli text doesn't change by those events (maybe I missed some config here to make it happen), I think it should be optimized.
Typing in cli after
use stdis also not very responsive due to the same reason, but that is probably harder to fix.