Jump to content

PHP APC


abazoskib

Recommended Posts

Yeah, php's cli is notoriously slow when compared to something like Python or Perl. I'm not sure APC would boost performance noticeably.
APC can be used to cache data and objects in memory, but those data and objects are only shareable between different processes within the CGI environment. CLI scripts don't get to use APC for sharing, so there's a lot less benefit in using it. Memcache would be a better option than APC for sharing data/objects between CLI scripts.

 

I've never found PHP particularly slow as a CLI scripting engine, at least not when the code is tuned to be efficient.

 

Link to comment
https://forums.phpfreaks.com/topic/172236-php-apc/#findComment-908170
Share on other sites

Yeah, php's cli is notoriously slow when compared to something like Python or Perl. I'm not sure APC would boost performance noticeably.
APC can be used to cache data and objects in memory, but those data and objects are only shareable between different processes within the CGI environment. CLI scripts don't get to use APC for sharing, so there's a lot less benefit in using it. Memcache would be a better option than APC for sharing data/objects between CLI scripts.

 

I've never found PHP particularly slow as a CLI scripting engine, at least not when the code is tuned to be efficient.

 

code can ALWAYS be better. But thanks for the advice everyone.

Link to comment
https://forums.phpfreaks.com/topic/172236-php-apc/#findComment-908367
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.