abazoskib Posted August 28, 2009 Share Posted August 28, 2009 Anyone have any positive experiences with APC? I run a lot of CLI php and I could use an extra boost in performance. Link to comment https://forums.phpfreaks.com/topic/172236-php-apc/ Share on other sites More sharing options...
trq Posted August 28, 2009 Share Posted August 28, 2009 Yeah, php's cli is notoriously slow when compared to something like Python or Perl. I'm not sure APC would boost performance noticeably. Link to comment https://forums.phpfreaks.com/topic/172236-php-apc/#findComment-908134 Share on other sites More sharing options...
abazoskib Posted August 28, 2009 Author Share Posted August 28, 2009 Besides converting my scripts to Perl or Python, what would be a way to speed it up? I could use any speed increase. Link to comment https://forums.phpfreaks.com/topic/172236-php-apc/#findComment-908150 Share on other sites More sharing options...
Mark Baker Posted August 28, 2009 Share Posted August 28, 2009 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 More sharing options...
trq Posted August 28, 2009 Share Posted August 28, 2009 I've never found PHP particularly slow as a CLI scripting engine, at least not when the code is tuned to be efficient. Its always seemed real slow to me compared with languages like Python and Perl that were probably designed more with the cli in mind. Link to comment https://forums.phpfreaks.com/topic/172236-php-apc/#findComment-908240 Share on other sites More sharing options...
abazoskib Posted August 28, 2009 Author Share Posted August 28, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.