zendtech / ZendOptimizerPlus

Other
914 stars 142 forks source link

Will compiled variables be cached? #209

Open milesdong opened 9 years ago

milesdong commented 9 years ago

I have notice that run_init costs lots of time which displayed by xhprof when I have a class with a large static array, say a config file: class Conf { public static $conf = array(...); } I have read the opcodes dumped by vld and read some docs which clames that this is a compiled variable, so will CV cache by opcode cache? If yes, why it still cost a lot of time to load it? Thanks.

milesdong commented 9 years ago

Seems like the xhprof's inaccuracy, which should be sloved by aggregate profilling. But reply is still appreciate:)