1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-22 20:28:22 +02:00
nushell/crates/nu-command
Stefan Holderbach ec528c0626
Refactor source cache into CachedFile struct ()
# Description
Get rid of two parallel `Vec`s in `StateDelta` and `EngineState`, that
also duplicated span information. Use a struct with documenting fields.

Also use `Arc<str>` and `Arc<[u8]>` for the allocations as they are
never modified and cloned often (see  for the first improvement).
This also makes the representation more compact as no capacity is
necessary.

# User-Facing Changes
API breakage on `EngineState`/`StateWorkingSet`/`StateDelta` that should
not really affect plugin authors.
2024-03-20 19:43:50 +01:00
..
src Refactor source cache into CachedFile struct () 2024-03-20 19:43:50 +01:00
tests Fix usage of --tabs flag while converting to json () () 2024-03-20 11:55:51 -05:00
Cargo.toml Adjust permissions using umask in mkdir () 2024-03-14 16:43:42 -05:00
LICENSE Fix rest of license year ranges () 2023-04-04 09:03:29 +12:00