Hehe. I should attach the patch, eh?
On Saturday, November 9, 2002, at 09:15 PM, George Schlossnagle wrote:
Here's the patch that Dan and I put together for the optimizer we
talked about at the conference. It basically provides a
defaulted-to-null function pointer that is the default case for the
main execute() loop. This allows people to define their own opcodes
without having to copy the source code for execute part and parcel into
their own zend_execute() just to add a new opcodes. This is useful
both for optimizers (like the one now in PECL/optimizer), as well as
for implementing custom opcodes like what you want here without a huge
engine patch.
George
On Friday, November 8, 2002, at 05:18 PM, Andrei Zmievski wrote:
On Sat, 09 Nov 2002, Andi Gutmans wrote:
I am very much against anything like this.
Improving strlen()'s performance only will have a negligible
performance
impact on a real world script.
With the same kind of argument you could probably find 10-20 functions
which would be faster if you'd make opcodes for them. That's not
really
what you'd want to do.
Also, the patch isn't quite the same functionality wise because
strlen in
your patch is a reserved word. This isn't my main problem though as it
could be solved.
Just out of curiousity, what are the problems with making it a reserved
word and how could it be solved?
If you want to really help improve performance of real-world scripts
then
try and find a way to improve performance of *all* function calls,
i.e., of
the extension API; and not by moving functions from the extension API
into
the core.
No big deal. This just came up at the PHP conference in Germany
during a
chat with George and Thies.
-Andrei
http://www.gravitonic.com/
* If Bill Gates had a nickel for every time Windows crashed.. Oh,
wait.. *
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php
// George Schlossnagle
// Principal Consultant
// OmniTI, Inc http://www.omniti.com
// (c) 240.460.5234 (e) [EMAIL PROTECTED]
// 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0
-- PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php