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
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
> &
> -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
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
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
You might wont to have a look at sparse system and
see if it possible in your case to use them.
See: http://www.ulib.org/webRoot/Books/Numerical_Recipes/bookcpdf/c2-7.pdf
This gives a brief theoretical overview of the possibilities.
> -Original Message-
> From: Mihail Bota [mailto:mbota
> By the way, your question is rather not that much about php. (Not that I
> uses php and care that much... :)
Well I was more thinking of some profiling routines than checking the actual
SQL queries. I've done so with 'explain' command and it seems the queries
all make use of the right index fil
A decent RDBMS should provide the developer with a query analyser which
displays how the query will be compiled and give an estimate of execution
time in each part so you can investigate where most of the power is drained.
By the way, your question is rather not that much about php. (Not that I
Stopping and starting is supposed to be faster.
You may want to read:
http://phpbeginner.com/columns/jason/echo
However, I tend to echo anyway because the code is much easier on the eyes.
;)
As far as print vs echo, I have no idea. My guess would be that echo is
faster, but I have nothing to ba
Aha, an ex-ASP programmer!
I've heard that the stop and start is faster, but it really doesn't matter
with PHP. In ASP its an issue because ASP does a context switch every time
from HTML to the VBScript/JScript compiler. PHP doesn't do any context
switches so there's no overhead to stop and start
10 matches
Mail list logo