mirror of
https://github.com/nushell/nushell.git
synced 2025-01-27 00:28:41 +01:00
d6f4e4c4fe
This pr does two optimization for the completer: - Switch `sort_by` to `sort_unstable_by` on `sort_completions` function since it reduces memory allocation and the orders of the identical completions are not matter. - Change `prefix` type from `Vec<u8>` to `&[u8]` to reduce cloning and memory. |
||
---|---|---|
.. | ||
base.rs | ||
command_completions.rs | ||
completer.rs | ||
completion_common.rs | ||
completion_options.rs | ||
custom_completions.rs | ||
directory_completions.rs | ||
dotnu_completions.rs | ||
file_completions.rs | ||
flag_completions.rs | ||
mod.rs | ||
operator_completions.rs | ||
variable_completions.rs |