cargo-binstall/crates/leon/src
Jiahao XU 44923d25ca
Rewrite Template::parse_items: More readable & better perf (#932)
Replace the algorithm with explicit state and complex matching with a loop that encodes state in the current structure of the loop.

The new code is much more readable and might be more performant since it uses `str::find`/`str::split_once` to look for next token instead of manually iterating over `str::chars`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-03-21 18:22:23 +11:00
..
error.rs Leon template library (#766) 2023-03-21 01:36:02 +00:00
lib.rs Leon template library (#766) 2023-03-21 01:36:02 +00:00
macros.rs Leon template library (#766) 2023-03-21 01:36:02 +00:00
main.rs Leon template library (#766) 2023-03-21 01:36:02 +00:00
parser.rs Rewrite Template::parse_items: More readable & better perf (#932) 2023-03-21 18:22:23 +11:00
template.rs Leon template library (#766) 2023-03-21 01:36:02 +00:00
values.rs Leon template library (#766) 2023-03-21 01:36:02 +00:00