| 
	
 | 
 Posted by CptDondo on 10/20/06 19:07 
Adam Harvey wrote: 
> On Thu, 19 Oct 2006 16:29:46 -0700, CptDondo wrote: 
>> So... Is this a right guess?  How long does it take to load php?  Is  
>> there some way to daemonize PHP so that it doesn't have to load up every  
>> time? 
>> 
>> I am looking for any and all suggestions to speed this beast up.... 
>  
> Admittedly I don't deal with embedded platforms as a rule, but you might 
> like to have a look at using lighttpd <http://www.lighttpd.net/> with PHP 
> running under FastCGI, which should take out much of the process 
> initialisation overhead that you're noticing now.  
 
Woo hoo!  That took the generation time from about 6 seconds to just  
under a second.  Some of the complicated pages still take a couple of  
seconds, but that's OK.  Whee! 
 
> If you have some spare 
> RAM available (doubtful, I know, given the nature of the platform), you 
> could also consider using an opcode cache like APC 
> <http://pecl.php.net/package/APC> or eAccelerator 
> <http://eaccelerator.net/>, which would save the script(s) being parsed on 
> each request. 
 
Currently I have 32 MB, but I can add more for the production if it is  
warranted. 
 
Thanks! 
 
--Yan
 
  
Navigation:
[Reply to this message] 
 |