A
A
Alexander Sharomet2016-01-24 11:38:38
PHP
Alexander Sharomet, 2016-01-24 11:38:38

Is it true that when using template engines in php, the speed drops significantly?

Hello!
Is it true that when using template engines like tpl, the speed drops significantly in php?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jacksparrow, 2016-01-24
@sharomet

There are two main points, 1) PHP itself is a template
BUT 2) The idea of ​​template engines is to simplify the work with the code, for example, the same twig generates a PHP file and caches the result.
As a result, when caching the result of the work, it is not very important how quickly this very result is generated, the convenience of work is important.

S
Sergey, 2016-01-24
Protko @Fesor

Modern templating engines compile the whole thing into fairly efficient PHP. So no, not true, or it all depends on the template engine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question