#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:
--------------------------------+-------------------------------------------
[This problem was mentioned to me by Thorsten Kleinjung.]
Consider a file {{{b.sage}}} containing a single line {{{sigma =
111...111}}} with 200000 ones, and another file {{{c.sage}}} with
400000 ones. Then with Sage 4.7:
{{{
sage: t=cputime()
sage: load b.sage
sage: cputime(t)
1.7999999999999998
sage: t=cputime()
sage: load c.sage
sage: cputime(t)
6.7800000000000011
}}}
Magma V2.17-7 reads the 400000-digit integer in about 80ms, i.e.,
about 85 times faster than Sage. I consider this as a defect.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11740>
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.