buildkite / terminal-to-html

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

Rewrite parser state machine #20

Closed mipearson closed 9 years ago

mipearson commented 9 years ago

The parser state machine was originally written as a performance testing exercise as the original regex was the last big performance bottleneck.

Unfortunately, it was pretty awful code.

This rewrites the state machine so that it's easier to understand and also introduces a performance boost for escape code heavy files.

keithpitt commented 9 years ago

:santa: