stack new is very slow at compiling Mustache templates #4133
Milestone
Comments
I've determined that this can be triggered by trying to compile the bootstrap.css file, which weighs in at 149kb. Proposed workaround: I'm going to add an arbitrary limit to |
Hmm ... I wouldn't be surprised if that's the parser. Perhaps someone with more experience in writing parsers can take a look at it? |
mihaimaruseac
added a commit
that referenced
this issue
Jul 8, 2018
Do not apply Mustache to large files (fixes #4133)
@JustusAdam I'd love to do so, but unfortunately I likely won't have time for that in the next few weeks at least, I've got a bunch of major things on my plate I'm going to have to focus on, sorry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actions:
stack new foo yesodweb/simple
Expect: it will generate the output in under 5 seconds
Actual: it takes a full minute to compile the Mustache template
I'm guessing the move over to
mustache
fromhastache
triggered this. The Yesod templates may be an extreme case because they include large base64-encoded binary blobs for images. I'll try applying the templates to one file at a time instead and see if it speeds things up.CC @borsboom @JustusAdam
The text was updated successfully, but these errors were encountered: