splumhoff/PSMustache

Option to cache the Parsed Template

Closed this issue · 3 comments

In high frequency use, parsing the same template for each execution is expensive. can there be a caching done for parsed template? internally it could be based on file path input. While externally, caller can cache the parser's outcome and pass it as input in subsequent calls.

Hi,

please have a look at the new release 1.3.1. I'm very interested if and how much this speeds up your environment.
May I ask how many runs do you take with the same template?

Hi @turtl7,

did you have time to give the new release a try?

No response, but should work as described