[Python-3000] range() issues
Mark Dickinson
dickinsm at gmail.com
Thu May 1 16:59:38 CEST 2008
On Thu, May 1, 2008 at 10:41 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> One way to optimise this (since all we need to support here is counting
> rather than arbitrary arithmetic) would be for the longrange iterator to use
> some simple pure C fixed point arithmetic internally to keep track of an
> arbitrarily long counter, and only convert to a Python long when it has to
> (just like the optimised shortrange iterator).
>
Stop already! It was an ill-considered, throwaway comment, and I apologise
for making it.
> I'm not sure it is worth the hassle though.
>
Indeed. Using such a large range is almost certainly not common enough to
make it worth optimising...
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-3000/attachments/20080501/fded6801/attachment.htm>
More information about the Python-3000
mailing list