Hi,
I have some PHP scripts to be run as daemons or as gearman workers. Now it
would be fine, if PHP could make use of an opcode cache also for CLI scripts.
Is anybody aware of an opcode cache (APC, XCache, eaccelerator) that could be
addapted in this way? Two possible scenarios:
- A Runner starts and keeps running x PHP threads with the same PHP script
which share an opcode cache. - A gearman worker starts different PHP scripts according to the requested
task. All threads share the opcode cache.
Which is the best mailing list to discuss this further, please?
Best regards,
Thomas Koch, http://www.koch.ro
Thomas Koch thomas@koch.ro writes:
http://www.php.net/manual/en/apc.configuration.php#ini.apc.enable-cli
is that what you want?
Hi,
I have some PHP scripts to be run as daemons or as gearman workers. Now it
would be fine, if PHP could make use of an opcode cache also for CLI scripts.Is anybody aware of an opcode cache (APC, XCache, eaccelerator) that could be
addapted in this way? Two possible scenarios:
- A Runner starts and keeps running x PHP threads with the same PHP script
which share an opcode cache.- A gearman worker starts different PHP scripts according to the requested
task. All threads share the opcode cache.Which is the best mailing list to discuss this further, please?
Best regards,
Thomas Koch, http://www.koch.ro
Excerpts from Peter Wang's message of Mon Jul 13 05:34:33 -0400 2009:
http://www.php.net/manual/en/apc.configuration.php#ini.apc.enable-cli
is that what you want?
Not really, since the manual even specifically states that the opcode cache
will get created and destroyed. I think Thomas is looking for something
a little similar to Python's pyc files.
Excerpts from Peter Wang's message of Mon Jul 13 05:34:33 -0400 2009:
http://www.php.net/manual/en/apc.configuration.php#ini.apc.enable-cli
is that what you want?
Not really, since the manual even specifically states that the opcode cache
will get created and destroyed. I think Thomas is looking for something
a little similar to Python's pyc files.--
I've seen Roadsend: http://www.roadsend.com/home/index.php?pageID=compiler
and PhC: www.phpcompiler.org
I think these are closer to what you want, but I'm not sure either are
worth using, as I've used neither. If you do use one, or both, let me
know for sure :)