Optimized ANSI parser with caching for common sequences.
Reduces memory overhead and improves performance for frequently used escape sequences.
Summary
Functions
Benchmark comparison between cached and original parser.
Get statistics about cache coverage.
Parses ANSI escape sequences with caching optimization.
Types
Functions
Benchmark comparison between cached and original parser.
Get statistics about cache coverage.
@spec parse(binary()) :: [parsed_token()]
Parses ANSI escape sequences with caching optimization.
First checks if the input exactly matches a common cached sequence, then falls back to full parsing for complex inputs.