Magento Forum

Performance improved by APC, worthwhile doing! 
 
salsasepp
Member
 
Avatar
Total Posts:  32
Joined:  2008-03-21
Saarlouis, Germany
 

Playing around with my 1.0 installation on a debian etch machine, I installed the apc bytecache. Almost instantly, my pages were loading at least 2 times faster. I did not do proper benchmarks, just estimating, switching back off, it’s loading slower, switching back on, it’s faster.

Nice!  cool grin

I am new to PHP and would not be the right person to ask “how to I install apc”. However
* pecl install apc
* and some subsequent automatic make/compile steps
did it for me.
Also, I found benchmarks for Drupal on the net, where APC consistently did a 500% speedup over pure PHP.

Please be sure to also re-read this excellent summary on the performance topic
http://www.magentocommerce.com/blog/comments/performance-is-key-notes-on-magentos-performance/

 
Magento Community Magento Community
Magento Community
Magento Community
 
golles
Sr. Member
 
Total Posts:  257
Joined:  2008-01-15
 
salsasepp - 02 April 2008 08:27 AM

* pecl install apc
* and some subsequent automatic make/compile steps

thanks for this - very interesting

did you not have to make any code changes to the magento core to utilise the apc caching?

sorry I am unfamiliar with how apc executes.

 
Magento Community Magento Community
Magento Community
Magento Community
 
salsasepp
Member
 
Avatar
Total Posts:  32
Joined:  2008-03-21
Saarlouis, Germany
 

No magento code changes are necessary. APC loads as a PHP extension, so I added the line
extension=apc.so (I guess that would be apc.dll under Windows)
to my php.ini. That’s it.

What confuses me is the elaborate way of pecl to install it - I had to have make, gcc and some other things on my machine, which is okay for my testing setup, but I would not want that on my production machine.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top