-
Notifications
You must be signed in to change notification settings - Fork 462
generate less code for regex plugin #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@huonw I'm not sure this issue actually belongs on this repo, unless there is something about the |
I don't know the specifics of |
(Yup, was mechanical.) OK, I re-opened the issue on rust-lang/regex, but I'm also keeping this open because it would be nice to reduce the amount of code generated by |
I wonder if |
Yeah, I doubt
|
What is the code generated? |
@arielb1 Right now, it's a full NFA simulation. The generator requires calling the regex parser and compiler before hand. |
Closing in favor of #26. |
Tuesday Apr 29, 2014 at 14:00 GMT
For earlier discussion, see rust-lang/rust#13842
This issue was labelled with: I-compiletime in the Rust repository
They don't take nearly this long to just compile as dynamic ones, so I would guess it's the extra work that the generating macro is doing. (Note the
--no-trans
there, so it isn't just the extra code making LLVM slow.)A perf trace identifies
rustc librustc-4283bb68-0.11-pre.so [.] hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::search::h14555543045583792107::v0.11.pre
as taking a lot (10.18%) of time.The text was updated successfully, but these errors were encountered: