forked from extern/nushell
75cb3fcc5f
# Description Refactored the quadratic complexity on `uniq` to use a HashMap, as key I converted the Value to string. I tried to use the HashableValue, but it looks it is not very developed yet and it was getting more complex and difficult. This improves performance on large data sets. Fixes https://github.com/nushell/nushell/issues/7477 # Tests + Formatting ``` > let data = fetch "https://home.treasury.gov/system/files/276/yield-curve-rates-1990-2021.csv" > $data | uniq ``` it keeps original attribute order in Records: ``` > [ {b:2, a:1} {a:1, b:2} ] | uniq ╭───┬───┬───╮ │ # │ b │ a │ ├───┼───┼───┤ │ 0 │ 2 │ 1 │ ╰───┴───┴───╯ ``` |
||
---|---|---|
.. | ||
assets | ||
proptest-regressions/format_conversions | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
LICENSE |