buildkite / terminal-to-html

Converts arbitrary shell output (with ANSI) into beautifully rendered HTML
http://buildkite.github.io/terminal-to-html
MIT License
657 stars 44 forks source link

Delta timestamping #117

Closed DrJosh9000 closed 11 months ago

DrJosh9000 commented 11 months ago

Per-line ("ANSI") timestamps could be more compact. Most of the timestamps in a single log will share the same initial 7 or 8 digits. Also, I claim (without proof) that job logs tend to be written in batches (all close in time to one another) and would therefore benefit from delta compression.

Because terminal-to-html processes the stream of output, which is monotonic in time, into a "screen" with lines written to out-of-order, at least some of the logic for handling delta timestamps belongs here.