Stefan Behnel added the comment:

I found one more place where special casing helps: equal comparisons to 
integers, e.g. f == 0 or f == 1 or so. timeit shows me a speedup by a factor of 
three for this, with only a tiny slow-down when comparing fractions on both 
sides.

I put all of them in one patch, deselecting after applying should be easy 
enough.

----------
Added file: http://bugs.python.org/file36690/special_case_int4.patch

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

Reply via email to