Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It can. I did it here: https://github.com/BurntSushi/rebar/tree/ag/regexinit/record...

And the PR: https://github.com/BurntSushi/rebar/pull/3

Although I probably won't merge it. Overall results:

    $ rebar rank record/curated/2023-07-05/*.csv -M compile --intersection
    Engine          Version  Geometric mean of speed ratios  Benchmark count
    ------          -------  ------------------------------  ---------------
    rust/regex      1.9.0    1.03                            34
    rust/regexold   1.7.3    3.12                            34
    rust/regexinit  1.0.0    4.35                            34
You can explore individual benchmarks in either the README I linked above, or by checkout out that PR and running this:

    rebar cmp record/curated/2023-07-05/*.csv -M compile --intersection
(You'll need to build rebar first of course though.)


More than 2x improvement :). It started off fast and just kept getting faster. Congrats.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: