This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Repository navigation
When to box parsers? #893
Answered
by
zesterer
jimmycuadra
asked this question in
Q&A
|
I've noticed compilation times can be quite slow in my program. I've read in the docs and a few discussions that this is not unexpected for programs with lots of long parser chains and that boxing parsers can help reduce compilation times. I'm wondering if there's guidance on how to decide which parsers to box for this purpose without too much of a trade off. I'm suspect that for my small program, I could probably just box all parsers and the dynamic dispatch wouldn't matter much, but I'm guessing there's a better approach. Is it just trial and error, boxing one at a time to see which ones have an effect on compilation times? Or is there something I should be looking for in a parser that makes it a good candidate for boxing? |
Answered by
zesterer
Oct 27, 2025
Replies: 1 comment 4 replies
4 replies
Answer selected by
jimmycuadra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is!