On Thu, May 1, 2008 at 10:41 AM, Nick Coghlan <[EMAIL PROTECTED]> 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
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to