forked from extern/nushell
22c50185b5
`table` handles slow `ListStream`s in a special way: every 100 items, it checks whether 1 second has elapsed since the last table page, and if so it outputs a new page with all the items in its buffer. **I would like to remove the "every 100 items" condition and always output whatever we have if a second has elapsed.** I think this will be a better user experience for very slow streams. As a motivating example, imagine tailing a log file and doing some string parsing/projection on each line. The user will be really annoyed if they have to wait for 100 lines to be written to the log before seeing new results! I did some quick performance measurements with Criterion, and the elapsed-time check takes about 16ns on my machine (Linux, 12900k). I think the performance impact of checking that for every item will be negligible. |
||
---|---|---|
.. | ||
assets | ||
proptest-regressions/format_conversions | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
LICENSE |