3 ms·
By complex I mean templates that make your templating engine go slow. Unless you are using a terrible engine, which is slow no matter what it's parsing.
by IgorPartola 16y ago
By complex I mean templates that make your templating engine go slow. Unless you are using a terrible engine, which is slow no matter what it's parsing.
- thezilch 16y agoPerhaps you need to define slow or run the benchmark(s) yourself. Sorry to be pedantic. I don't really understand what you mean by "templates that make your template engine go slow," as business requirements are going to trump anyones' skewed, dogmatic reality on the [controlled] use of eval, exec, etc. Where my data is coming from local cache, the template does stick out in the request/response chain.
- IgorPartola 16y agoPedantic is fine. I mean templates so complex as to become a bottleneck in processing web requests (rendering the template takes more time than any other operation performed). http://en.wikipedia.org/wiki/Bottleneck#Bottlenecks_in_software http://en.wikipedia.org/wiki/Bottleneck#Bottlenecks_in_softw.... In your scenario, if you can cache the data, you can likely cache rendered templates, or parts of the rendered templates, or introduce a caching reverse proxy.