Lokyr
Documentation

The restored scrollback's cost at the quit and the start

Measured on 22 November 2026 on an M5 Pro on AC power, the load average 3.1 to 3.3. The cost is the time that keeping and reading back the panes' scrollback adds to the quit and to the next start, and the bytes of the files that it keeps. The measure is the app's own, scrollback_costs, a release build of the app over the platform's fake, whose results are in results.txt.

Method

Results

Of the rows read back on each pane's own thread, as the app does:

PanesFillQuit, offQuit, onStart, offStart, onRows shownFiles
1half0.5 ms6.9 ms7.6 ms7.4 ms11.3 ms0.7 MB
1full0.6 ms12.6 ms7.6 ms7.6 ms12.8 ms1.4 MB
10half0.9 ms64.7 ms26.6 ms33.4 ms36.3 ms7.3 MB
10full1.2 ms115.6 ms33.0 ms40.1 ms43.0 ms13.7 MB
50half1.3 ms122.0 ms146.9 ms183.5 ms185.5 ms12.8 MB
50full1.5 ms111.2 ms158.2 ms188.8 ms189.2 ms11.4 MB

Of the rows read back on the main thread, the first design:

PanesFillStart, offStart, on
1full8.4 ms17.1 ms
10full33.4 ms93.3 ms
50full158.3 ms300.0 ms

Empty panes keep no file, and cost nothing at either end.