Accelerated-Zig-Parser
Accelerated-Zig-Parser copied to clipboard
A high-throughput parser for the Zig programming language.
I randomly noticed that the runtime of reading files is now ~70ms, whereas it used to be ~30ms? Not sure what's going on there but something is not right.
It sounds nicer to me to split Apache derived files and ideally put them into a package. This would also allow eventual usage of SPDX ids via package manager. Opinions?...
1. As far as I understand, using Zig compiler on embedded (100-300MB RAM) is a potential use cases. Is compatibility without SIMD possible/planned and what would be slowdown and/or drawback?...
more crazy idea for benchmarking: compare against optimal AST structure (found by applying simplex)
A relative optimal AST structure can be found from computing simplex with the derived constrains on the first AST parse + copy things over. See also https://en.wikipedia.org/wiki/Simplex_algorithm. The general idea...
see PR https://github.com/ziglang/zig/pull/21367 Might be also usable instead of `while (true) {`.