Skip to main content

TAIL_WINDOW_BYTES

Constant TAIL_WINDOW_BYTES 

Source
pub const TAIL_WINDOW_BYTES: u64 = _ /* 65_536u64 */;
Expand description

Largest slice of the file read at a time. Output files grow without bound (cargo build, npm install) and this runs inline on a view’s own tick, so the read seeks to within this window of the end rather than reading the whole file each time. 64 KiB comfortably holds the last few lines at any realistic line length.