Re: [SMARTY] new plugin: mailto
| From: | Monte Ohrt | Date: | Wed, 22 May 2002 13:24:00 +0000 |
| Subject: | Re: [SMARTY] new plugin: mailto | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4353@lists.php.net to get a copy of this message | ||
Here's what the phpa author had to say about the subject:
"You're right. Function calls are expensive in php, and so this isn't
good. Really this is something that the compiler should optimise by
having an opcode that returns the count of an array. So count($x) has a
dedicated instruction. Then it would be efficient. I've thought about
optimising this case, but you'd need to only optimise if the loop
contained no user function calls, unless you knew that foo was created
in the code block and hadn't been passed to any functions."
-- Nick
Steve wrote:
I should clarify, credit should be given to Rasmus :) -----Original Message----- From: Steve [mailto:lists@iwsys.com] Sent: Tuesday, May 21, 2002 11:04 PM To: Smarty General Subject: RE: [SMARTY] new plugin: mailto Well, credit must be given here. I had just done a little reading in Rasmus' book and noticed this as something he addresses in there in reference to performance. So, I decided to post to the list. Was a little apprehensive. Glad I did now. Steve -----Original Message----- From: Rasmus Lerdorf [mailto:rasmus@php.net] Sent: Tuesday, May 21, 2002 8:28 PM To: Alan McFarlane Cc: Monte Ohrt; Kelly Cochran; Smarty General Subject: RE: [SMARTY] new plugin: mailto-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.I'll look forward to the new code - (hmm, I wonder if PHP source uses this trick, or Apache?)Yes, of course we do. Hopefully common sense. -Rasmus -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php