[issue12399] make cell var initialization more efficient

2011-06-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: The attached highly braindead benchmark reports about a 2% improvement. -- Added file: http://bugs.python.org/file22444/x.py ___ Python tracker

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Then change the issue title :-p. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/6/24 Jesús Cea Avión : > > Jesús Cea Avión added the comment: > > Could you possibly post a before/after timing comparison?. Some realistic > code... Post the test code too. > > And yes, I know that the difference will depend of code, and hardware > a

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you possibly post a before/after timing comparison?. Some realistic code... Post the test code too. And yes, I know that the difference will depend of code, and hardware architecture. But some references are better that not reference at all. -

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Benjamin Peterson
New submission from Benjamin Peterson : Initializing cell variables currently involves 2 nested loops every function call. This patch makes that process much more efficient by saving information which doesn't change every function call to the code object. -- components: Interpreter Cor