Answer the question
In order to leave comments, you need to log in
Smarty/Twig in one huge file?
The idea is to make Smarty one (big) file.
I couldn't test it myself. Not for Smarty2, not for Smarty3. I started several times, but after spending some time I quit.
What if we completely get rid of include? All functions and classes will be in one file. There will be hundreds of extra inclusions. There will be only one file in the form of an op-code inside the APC/XCache/eaccelerator cache and so on.
Will it give a performance boost? Google is silent or I'm searching wrong.
Or is it all bullshit?
Answer the question
In order to leave comments, you need to log in
Will it give a performance boost?
I tried to build zend like this. On Linux, it practically does not give a win; on Windows, the win was significant. Maybe something has changed since then.
Here the guys tried to build the Zend Framework - the conclusions are ambiguous
Do not listen to anyone, there is a win. True, unless the opcode cacher keeps all the code in memory, which is not often the case. With us, when the screw began to choke and the processor was constantly idle in iowait, we started to optimize by merging and pushing "compiled" libraries from one folder to all studio projects. Result on the face.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question