2 ms·
And a list of options. Reading the first 80 lines of https://github.com/alexhallam/tv/blob/main/src/main.rs https://github.com/alexhallam/tv/blob/main/src/main.
by Someone 5y ago
And a list of options. Reading the first 80 lines of https://github.com/alexhallam/tv/blob/main/src/main.rs https://github.com/alexhallam/tv/blob/main/src/main.rs was in some sense more educational than the readme.
It, for example, allowed me to make an educated guess as to the answer to the question “how does this handle huge files?”. It by default only reads 25 lines.
(That makes the example from the header:
cat diamonds.csv | head -n 35 | tv
a bad example. You shouldn’t need that head in-between.
However, line 167 says
//.take(row_display_option + 1)
That seems to indicate this reads the entire file into memory, and that guess wasn’t that educated at all.