-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Hitting OOM error when building large pest file #157
Comments
I've managed to compile this with less than 200MBs used by |
Im compiling on a Mac:
I've attached a sample project, including a Cargo.toml file with no optimizations. Running |
Note this is compressed memory usage. Actual memory usage hits 3-4GB |
UPDATE: It seems like there's a problem on stable. I'm getting OOM on stable too, but not on nightly, or beta. |
I took a look over some recently closed issues in |
Would it make sense to report a bug on the compiler so that it is documented there as well? Especially if the problem was fixed by chance, it points to a potential regression later on. |
@Victor-Savu Definitely. I've just pushed a feature not so long ago. I'll try to handle this next. (see exactly where the regression might be) |
Looks like it was a bug in the rust compiler, rust-lang/rust#43613. Probably isn't worth looking into further but good to note for reference. I'Ill use nightly until rust 1.21 is released. Thanks for the quick responses! |
Thanks for finding the issue. I'll close this, since the next release of Rust is due to arrive soon anyway. |
I have a large-ish pest file (~ 2600) lines with rules that include large numbers of alternations. When compiling this, the
rustc
process consumes a peak of ~35GB. I assume this has something to do with the optimization step?Attaching the file for reference
entity.pest.zip
The text was updated successfully, but these errors were encountered: