PHP APC - Why is loading cached array op codes slow?

Posted by Aaron Kreider on Stack Overflow See other posts from Stack Overflow or by Aaron Kreider
Published on 2012-07-03T00:26:18Z Indexed on 2012/07/05 21:16 UTC
Read the original article Hit count: 243

Filed under:
|
|

I'm using APC to reduce my loading time for my PHP files. My files load very fast, except for one file where I define more than 100 arrays. This 270 kb file takes 200 ms to load. The rest of the files are full of objects, methods, and functions.

I'm wondering: does OP code caching not work as well for arrays?

My APC cache should be big enough to handle all of my classes. Currently 40% of my cache is free. My hit rate is 99%.

apc.shm_size=32 M
apc.max_file_size = 1M
apc.shm_segments= 1

APC 3.1.6

I'm using PHP 5.2, Apache 2, and Windows Vista.

© Stack Overflow or respective owner

Related posts about php

Related posts about apc