alacritty / vte

Parser for virtual terminal emulators
https://docs.rs/vte/
Apache License 2.0
242 stars 56 forks source link

Improve UTF-8 parser performance #8

Closed jwilm closed 4 years ago

jwilm commented 7 years ago

A benchmark for UTF-8 parsing performance was added. Using this benchmark, several strategies for parsing were tested versus the original lookup table implementation:

Of these implementations, the pure match peformed best in microbenchmarks, and that is the implementation retained in this commit.

chrisduerr commented 4 years ago

The https://github.com/jwilm/vte/pull/35 PR should implement this and some extra.