nushell/crates/nu-cli/src
Reilly Wood 5664ee7bda
Remove engine_state clones in REPL eval (#7713)
A small but easy optimization for `evaluate_repl()`: clone
`engine_state` 1x instead of 3x.

This reduces time spent in a simple REPL eval (`enter` key pressed with
no command text) by about 10%, as measured in
[Superluminal](https://superluminal.eu/).
2023-01-10 17:22:32 -08:00
..
completions Auto-Completion: put ` tildes around filenames with parentheses (#7712) 2023-01-10 20:41:54 +01:00
menus Reduced LOC by replacing several instances of Value::Int {}, Value::Float{}, Value::Bool {}, and Value::String {} with Value::int(), Value::float(), Value::boolean() and Value::string() (#7412) 2022-12-09 11:37:51 -05:00
commands.rs Remove perf flag to streamline logging configuration (#6834) 2022-10-21 10:20:21 -05:00
config_files.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
eval_file.rs Add FILE_PWD environment variable when running 'nu script.nu' (#7424) 2022-12-10 19:23:44 +02:00
lib.rs Split merging of parser delta and stack environment (#6005) 2022-07-14 17:09:27 +03:00
nu_highlight.rs Remove engine_state clones in REPL eval (#7713) 2023-01-10 17:22:32 -08:00
print.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
prompt_update.rs clean up some extra logging code in the cli (#7709) 2023-01-08 15:05:46 -05:00
prompt.rs Add support to render right prompt on last line of the prompt (#6781) 2022-10-23 16:18:26 +02:00
reedline_config.rs Extend config support from F1-F12 to F1-F20, #7666 (#7669) 2023-01-03 22:00:21 +01:00
repl.rs Remove engine_state clones in REPL eval (#7713) 2023-01-10 17:22:32 -08:00
syntax_highlight.rs Remove engine_state clones in REPL eval (#7713) 2023-01-10 17:22:32 -08:00
util.rs Fix streaming page missing newline (#7466) 2022-12-14 16:45:37 +13:00
validation.rs Remove engine_state clones in REPL eval (#7713) 2023-01-10 17:22:32 -08:00