#11740: reading integers from a file takes quadratic time
--------------------------------+-------------------------------------------
Reporter: zimmerma | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: basic arithmetic | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
--------------------------------+-------------------------------------------
Comment(by AlexGhitza):
Note that it seems to really just be something about *reading from a
file*, and not about *parsing a long integer*:
{{{
sage: for j in range(10):
....: s = '1'*(100000*2^j)
....: t = cputime()
....: si = ZZ(s)
....: cputime(t)
....:
0.056663000000000352
0.13999099999999842
0.33331100000000191
0.78328300000000084
1.8498789999999996
4.4430429999999994
10.539313
23.651790999999999
52.459912999999986
114.52253299999998
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11740#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.