cargo-binstall/crates/leon
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
..
benches Leon template library (#766) 2023-03-21 01:36:02 +00:00
fuzz Leon template library (#766) 2023-03-21 01:36:02 +00:00
src Rewrite Template::parse_items: More readable & better perf (#932) 2023-03-21 18:22:23 +11:00
Cargo.toml release: leon v1.0.0 (#931) 2023-03-21 01:59:36 +00:00
LICENSE-APACHE Leon template library (#766) 2023-03-21 01:36:02 +00:00
LICENSE-MIT Leon template library (#766) 2023-03-21 01:36:02 +00:00