Re: [PEPr] Comment on Images::Image_Canvas

From: Date: Thu, 21 Jul 2005 19:24:06 +0000
Subject: Re: [PEPr] Comment on Images::Image_Canvas
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38829@lists.php.net to get a copy of this message
On Thu, 2005-07-21 at 14:40 +0200, Jesper Veggerby Hansen wrote: > > > Hmmm.... That would be worth benchmarking, I guess. I cannot believe, > > that a simple "is_array()" and some variable conversion can be that > > expensive. Or? > > I don't think that it in itself is expensive compared to the rendering > stuff, my point is just that it adds some unecessary overhead. Just do if (isset($foo) && is_array($foo)) and the speed issue mostly goes away (not that it was much before anyway) - Helgi

« previous php.pear.dev (#38829) next »