Move backtracking for implements to specific spaces case that it's actually needed for, to avoid excess parsing work in extreme cases

This commit is contained in:
Joshua Warner 2025-01-03 19:29:19 -08:00
parent 6edfc0aa90
commit 090473434d
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
4 changed files with 6 additions and 24 deletions

View file

@ -28,5 +28,6 @@ fn main() {
let input = kind.with_text(&text);
let arena = Bump::new();
let output = input.parse_in(&arena);
eprintln!("memory used: {}", arena.allocated_bytes());
println!("{:#?}", output);
}