nushell/crates/nu-cli/src/completions
Kither d6f4e4c4fe
Improve completer (#14004)
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.
2024-10-06 20:31:37 +02:00
..
base.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
command_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
completer.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
completion_common.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
completion_options.rs Add completions.sort option (#13311) 2024-08-05 20:30:10 -04:00
custom_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
directory_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
dotnu_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
file_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
flag_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
mod.rs Add operator completions (#13818) 2024-10-04 16:54:25 +02:00
operator_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00
variable_completions.rs Improve completer (#14004) 2024-10-06 20:31:37 +02:00