mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
ee648ecb7d
# Description Generally elide a bunch of unnecessary clones. Both globally stopping to clone the whole input data in a bunch of places where we need to read it but also some minor places where we currently cloned. As part of that, we can make the overwriting with `keep-all` and `keep-last` inplace so the items don't need to be removed and repushed to the record. # Benchmarking ```nu timeit { scope commands | transpose -r } ``` Before ~24 ms now just ~5 ms # User-Facing Changes This can change the order of apperance in the transposed record with `--keep-last`/`--keep-all`. Now the order is determined by the first appearance and not by the last appearance in the ingoing columns. This mirrors the behavior when not passed `keep-all` or `keep-last`. # Tests + Formatting Sadly the `transpose` command is so far undertested for more complex operations. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE |