« Return to Thread: Zend Loader performance

Re: Zend Loader performance

by Karol Grecki :: Rate this Message:

Reply to Author | View in Thread

Did you test it with opcode cache enabled?

It's true that lots of files are included and compiled, but that's what you have APC for.

Karol

Ɓukasz Bandzarewicz wrote:
Hi all!

During simple profiling I noticed that Zend_Loader could consume 20-25% of execution time.
It's quite obvious, because ZF has to load lots of files, but..
have you ever wondering about compile ZF code? Something similar to phpDoctrine's compile method (http://www.phpdoctrine.org/documentation/manual/0_11?one-page#improving-performance)?

The compile method makes single file of most used components. Additionally it could remove comments and white spaces to reduce size of compiled file. It could reduce slow disk operations (check if file exists, load file, etc.) and increase performance.

What you think, is this feasible?

 « Return to Thread: Zend Loader performance