You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although performance is not the most important aspect of TOML handling, I did some profiling for funsies and noticed that JFLex default buffer size of 16k characters (32kB) is rather expensive, considering it is not recycled.
Since it looks like there is a way to configure that, as per
let's tune it down a bit: most input does not require contiguous buffer of that size, and if something does, Lexer just grows buffer size as necessary.
The text was updated successfully, but these errors were encountered:
Although performance is not the most important aspect of TOML handling, I did some profiling for funsies and noticed that JFLex default buffer size of 16k characters (32kB) is rather expensive, considering it is not recycled.
Since it looks like there is a way to configure that, as per
https://github.com/jflex-de/jflex/blob/master/docs/md/lex-specs.md
(specifically, use
%buffer
directive)let's tune it down a bit: most input does not require contiguous buffer of that size, and if something does, Lexer just grows buffer size as necessary.
The text was updated successfully, but these errors were encountered: