Replies: 1 comment 1 reply
-
|
In the early phases of this crate I spent some effort in optimizing the performance of analysis. Mostly in the parts where FOLLOW(k) is calculated, especially when k gets bigger. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've only seen a tiny portion of the code, and it's mostly my impression of how it works in my project,
paroldoes not seem to focus primarily on speed in analysis and generation.The culture of Rust has been that slow compilation is acceptable and unavoidable, but recently there have been changes such as incremental compile support in
rustc, faster linkers, and the emergence of libraries that sell quick compilation for rapid development iteration, e.g. Bevy.I don't think we don't need exhaustive optimization like written in this, and I think we only need faster data-structures/algorithms and parallelization in hot-spots. I love simple codes, and I think even more so.
Do you have any plans to improve the compilation speed? (I've noticed you've starred https://github.com/rust-lang/measureme.)
I have no practical experience in profiling, but I know some best practices in Rust, both profiling and optimization. I wish I could help.
Related links
Beta Was this translation helpful? Give feedback.
All reactions