rosetta-rs/template-benchmarks-rs

Why is Tera's render called twice?

olsuh opened this issue · 4 comments

djc commented

Exactly because of what you describe in #89: it forces the template engine to do all the necessary setup.

olsuh commented

Sorry I was confused. :)

olsuh commented

I put the debug output between these two lines. And I saw that there were many calls. It's too much to warm up.

djc commented

template-benchmarks-rs is currently a low priority for me. I think the code across all the template engines is pretty similar so in that sense it seems fair to me. If you want to submit a PR to change something I'll consider it, but it will have to be well-argued.