I think I found the collections.deque() to be faster that than the
list.pop() which makes sense if the list is implemented as a linked
list object. And the collections uses a array implementation.


Sent from my iPhone

On Oct 19, 2011, at 10:50 AM, Simon King <[email protected]> wrote:

> It might be a good idea to use collections.deque, not lists. First
> tests seem to indicate that their popleft() is faster than a list's
> pop(0).
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to