Benchmark : String templating at runtime

Gotcha. Yeah the use case matters a lot I guess. EEx isn’t really built to have new templates added at runtime, so it won’t perform very well in such a case. Maybe GitHub - edgurgel/solid: Liquid template engine in Elixir · GitHub might be a better fit, which still has a parse step but it seems to be one that you could easily cache and reuse at runtime.

1 Like