Potential compile time improvements? #591
TheNuclearNexus
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
|
It's pretty good idea. Interested into sending a patch and see some comparison numbers in your crates? Also, which version did you use? |
Beta Was this translation helpful? Give feedback.
5 replies
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.
-
In my project right now, I'm dealing with extremely slow compile times (30s+) for a simple template change (in the raw html), which is unbearably slow. This led me to think, what if instead of directly doing
#askama_writer.write_str(lit), the literals were stored as static references within the template struct? Then it would be possible to cache the rest of the codegen and only update the literals.An example of the codegen:
Beta Was this translation helpful? Give feedback.
All reactions