Some timings:

in sage-2.8.4.2 with patch:

sage: %time
sage: for i in range(1000):
...       v = irange(0, i)
CPU time: 8.72 s,  Wall time: 11.83 s


in sage-2.8.5 with patch it looks much better:

sage: %time
sage: for i in range(1000):
...       v = irange(0, i)
CPU time: 0.33 s,  Wall time: 0.33 s
sage: %time
sage: for i in range(1000):
...       v = [0..i]
CPU time: 0.40 s,  Wall time: 0.40 s
sage: %time
sage: for i in [0..1000]:
...       v = [0..i]
CPU time: 0.39 s,  Wall time: 0.39 s
sage: %time
sage: for i in srange(1000):
...       v = irange(0, i)
CPU time: 0.31 s,  Wall time: 0.33 s

Cheers,

Jaap


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to