nushell/crates/nu-explore/src
Stefan Holderbach cc39069e13
Reuse existing small allocations if possible (#12335)
Those allocations are all small and insignificant in the grand scheme of
things and the optimizer may be able to resolve some of those but better
to be nice anyways.

Primarily inspired by the new
[`clippy::assigning_clones`](https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones)

- **Avoid reallocs with `clone_from` in `nu-parser`**
- **Avoid realloc on assignment in `Stack`**
- **Fix `clippy::assigning_clones` in `nu-cli`**
- **Reuse allocations in `nu-explore` if possible**
2024-03-30 14:04:11 +01:00
..
commands Reuse existing small allocations if possible (#12335) 2024-03-30 14:04:11 +01:00
nu_common Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
pager Reuse existing small allocations if possible (#12335) 2024-03-30 14:04:11 +01:00
registry explore: remove :config, :show-config, :tweak commands (#10259) 2023-09-07 10:34:08 -05:00
views Reuse existing small allocations if possible (#12335) 2024-03-30 14:04:11 +01:00
default_context.rs Move explore command out of nu-command deps (#9421) 2023-06-14 01:18:36 +02:00
explore.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
lib.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00