Hi Sara, > -----Original Message----- > From: Sara Golemon [mailto:[EMAIL PROTECTED] > Sent: Friday, January 26, 2007 8:11 PM > To: Dmitry Stogov > Cc: internals@lists.php.net; 'Andi Gutmans'; 'Andrei > Zmievski'; Zeev Suraski; Stanislav Malyshev > Subject: Re: [PHP-DEV] Runtime-JIT, the whole enchilada > > > > I fixed one error in your patch, so now it passes all tests. > > > Which error? I notice some changes related to minimizing performance > impact, but I'm not seeing what I did wrong. Just curious for my own > benefit on that one.
During combination of ZEND_FETCH, ZEND_FETCH_OBJ into one ZEND_FETCH_OBJ with IS_CV you didn't check for first check type. So you could combine fetch of static (or global) variable into CV. You can just run "make test" with your and my patch and see difference. > > BTW I am against this patch. > > > Fair enough. > > > 1) It adds sloppily built functionality into the core > Well, you sure know how to sweet-talk a gal. My English isn't good and I spent some time with dictionary to write that I think :) Really, I think that you use the most complicated way to solve HTTP input encoding problem. May be we no longer need for autoglobals at all and can use simple functions like http_get_var($name). Thanks. Dmitry. > and slowdowns EACH > > dimension or property fetch both at run-time and > compilation-time. I think > > it is a big cost for $_GET/$_POST encoding-conversion, but > it is only my > > opinion. > > > For disarmed callbacks, it amounts to a vector lookup and a couple > integer compares, I'd hardly call that a "big cost". As to armed > callbacks, well, if they're still armed then they still have > some work > to do. Refer to prior posts in the thread as to why this work would > (and should) be deferred. > > > 2) It adds pointer to zend_auto_global into > zend_compiled_variable. This > > makes troubles for opcode caches - > zend_compiled_variable(s) may lay in > > shared memory, so they cannot point to process specific > data. I think this > > issue can be fixed using indirect pointer (index). > > > Excellent point. That will need to be addressed.... > > > Why did you reject auto-globals as overloaded arrays? > > > See earlier posts in this thread, such as the one I sent you > less than a > week ago and to which you replied indicating you understood it. > > If you thinking breaking BC is preferable to this "sloppy" approach, > then we can reexamine that. If you have a better, third > approach, which > solves all of the issues already outlined, then I'd love to hear it. > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php