Re: [PHP-WIN] speed of require/include

2010-10-20 Thread Tommy Pham
On Wed, Oct 20, 2010 at 3:18 PM, Tac Tacelosky wrote: > "Premature optimization is the root of all evil." > http://en.wikipedia.org/wiki/Program_optimization > If you need to include a big library to do a task, and it's cached, so what? >  Why are you trying to write fast code that doesn't need ca

Re: [PHP-WIN] speed of require/include

2010-10-20 Thread Tac Tacelosky
t of the time. IMHO, of course. Tac On Wed, Oct 20, 2010 at 6:07 PM, Tommy Pham wrote: > > -Original Message- > > From: Keith Davis [mailto:keithda...@pridedallas.com] > > Sent: Wednesday, October 20, 2010 2:09 PM > > To: Tac Tacelosky; Tommy Pham > &

RE: [PHP-WIN] speed of require/include

2010-10-20 Thread Tommy Pham
> -Original Message- > From: Keith Davis [mailto:keithda...@pridedallas.com] > Sent: Wednesday, October 20, 2010 2:09 PM > To: Tac Tacelosky; Tommy Pham > Cc: php-windows > Subject: RE: [PHP-WIN] speed of require/include > > Or use Wincache. That's what we

RE: [PHP-WIN] speed of require/include

2010-10-20 Thread Keith Davis
Or use Wincache. That's what we are using. Runs like a champ. Keith Davis (214) 906-5183 -Original Message- From: Tac Tacelosky [mailto:tac...@gmail.com] Sent: Wednesday, October 20, 2010 4:05 PM To: Tommy Pham Cc: php-windows Subject: Re: [PHP-WIN] speed of require/include If you

Re: [PHP-WIN] speed of require/include

2010-10-20 Thread Tac Tacelosky
If you have the RAM, install php_apc -- once the scripts are included once, the tokenized php will be cached in memory, can be a significant performance boost. We also use it for "global" variables that don't change across scripts, such as state and country names. Great tool, I wish it were built