Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To achieve two goals: - We attempt variants that can be identified using the first token, before trying variants that will fail after multiple ones are scanned correctly, and wasting time on expensive backtracking. - We attempt more correct/idiomatic variants first, before attempting deprecated/less common variants. This resulted in the following improvements to perf metrics: <a href="https://bencher.dev/perf/slang?key=true&reports_per_page=4&branches_per_page=8&testbeds_per_page=8&benchmarks_per_page=8&plots_per_page=8&reports_page=1&branches_page=1&testbeds_page=1&benchmarks_page=1&plots_page=1&branches=f658ee3c-6d7a-45eb-89f6-03070b74ec7b&testbeds=3b5cd476-1960-445e-a626-4bc112d566b4&benchmarks=8f3fd136-0816-481d-8819-abda60d7631f&measures=66e3fa8c-953e-406f-bfd6-6d38c9044aee&start_time=1720137600000&end_time=1724112000000&clear=true&tab=benchmarks"><img src="https://api.bencher.dev/v0/projects/slang/perf/img?branches=f658ee3c-6d7a-45eb-89f6-03070b74ec7b&testbeds=3b5cd476-1960-445e-a626-4bc112d566b4&benchmarks=8f3fd136-0816-481d-8819-abda60d7631f&measures=66e3fa8c-953e-406f-bfd6-6d38c9044aee&start_time=1720137600000&end_time=1724112000000" title="Slang" alt="Slang - Bencher" /></a> <a href="https://bencher.dev/perf/slang?key=true&reports_per_page=4&branches_per_page=8&testbeds_per_page=8&benchmarks_per_page=8&plots_per_page=8&reports_page=1&branches_page=1&testbeds_page=1&benchmarks_page=1&plots_page=1&branches=f658ee3c-6d7a-45eb-89f6-03070b74ec7b&testbeds=3b5cd476-1960-445e-a626-4bc112d566b4&benchmarks=8f3fd136-0816-481d-8819-abda60d7631f&measures=6d072304-d057-4560-a194-9ec92d4a4697&start_time=1720137600000&end_time=1724112000000&clear=true&tab=benchmarks"><img src="https://api.bencher.dev/v0/projects/slang/perf/img?branches=f658ee3c-6d7a-45eb-89f6-03070b74ec7b&testbeds=3b5cd476-1960-445e-a626-4bc112d566b4&benchmarks=8f3fd136-0816-481d-8819-abda60d7631f&measures=6d072304-d057-4560-a194-9ec92d4a4697&start_time=1720137600000&end_time=1724112000000" title="Slang" alt="Slang - Bencher" /></a> <a href="https://bencher.dev/perf/slang?key=true&reports_per_page=4&branches_per_page=8&testbeds_per_page=8&benchmarks_per_page=8&plots_per_page=8&reports_page=1&branches_page=1&testbeds_page=1&benchmarks_page=1&plots_page=1&branches=f658ee3c-6d7a-45eb-89f6-03070b74ec7b&testbeds=3b5cd476-1960-445e-a626-4bc112d566b4&benchmarks=8f3fd136-0816-481d-8819-abda60d7631f&measures=0890137e-c82f-4c68-bd4a-9c035fc9c54d&start_time=1720137600000&end_time=1724112000000&clear=true&tab=benchmarks"><img src="https://api.bencher.dev/v0/projects/slang/perf/img?branches=f658ee3c-6d7a-45eb-89f6-03070b74ec7b&testbeds=3b5cd476-1960-445e-a626-4bc112d566b4&benchmarks=8f3fd136-0816-481d-8819-abda60d7631f&measures=0890137e-c82f-4c68-bd4a-9c035fc9c54d&start_time=1720137600000&end_time=1724112000000" title="Slang" alt="Slang - Bencher" /></a>
- Loading branch information