mirror of
https://github.com/nushell/nushell.git
synced 2025-07-10 03:17:35 +02:00
Currently `last n` memory use is O(input), while it should be O(n). This patch replaces code collecting all of last's input into a Vec<_> with collecting into a bounded VecDeque<_>. UI/UX remain are unchanged.