[Python-Dev] heapq, min and max

Antoine Pitrou solipsis at pitrou.net
Wed Oct 22 23:23:26 CEST 2008


Raymond Hettinger <python <at> rcn.com> writes:
> 
> If we wanted to go the distance and type specialize,
> it is possible to use the same ideas that used in
> Py2.6's builtin sum() to speed-up compares for particular types.

Would it be useful to create a macro that packs some of the optimizations in
http://bugs.python.org/issue3106 , so that interested code can get the
optimizations for free simply by using the macro?





More information about the Python-Dev mailing list