A
A
antonwork2010-01-02 16:13:26
PHP
antonwork, 2010-01-02 16:13:26

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

4 answer(s)
D
Dmitry Sergeev, 2010-01-02
@JetMaster

Will it give a performance boost?

D. Koterov has the answer
dklab.ru/chicken/nablas/49.html

H
homm, 2010-01-02
@homm

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.

A
AndrewStephanoff, 2010-01-02
@AndrewStephanoff

Here the guys tried to build the Zend Framework - the conclusions are ambiguous

D
DorBer, 2010-01-02
@DorBer

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 question

Ask a Question

731 491 924 answers to any question