Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:

I did some spelunking.  Guido committed the similar optimization in r8306.    
The diff is at:
http://svn.python.org/view/python/trunk/Python/ceval.c?r1=8087&r2=8306

His commit message was:

    Huge speedup by inlining some common integer operations:
    int+int, int-int, int <compareop> int, and list[int].
    (Unfortunately, int*int is way too much code to inline.)

    Also corrected a NULL that should have been a zero.

It's possible that these kinds of optimizations were worthwhile with PyInt but 
aren't worthwhile with PyLong.

They were taken out by MvL in r59334, with a commit message of:

    Remove special-casing of integer operations, to stop
    using PyInt_CheckExact.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9800>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to