#15367: Empty lists while creating parents
-------------------------------------+-------------------------------------
Reporter: roed | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-5.13
Component: memleak | Resolution:
Keywords: | Merged in:
Authors: Nils Bruin | Reviewers: Simon King
Report Upstream: N/A | Work issues: Improve timings
Branch: | Commit:
u/SimonKing/ticket/15367 | a2852e9610a76e6df392544b01b8e3c319b1cdd4
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by SimonKing):
For completeness (with the same definition of `test(T,L,v)` and
`test2(T,L)` as in the previous post):
{{{
sage: T = {}
sage: L = srange(100)
sage: %time test(T, L, ZZ)
CPU times: user 0.53 s, sys: 0.05 s, total: 0.58 s
Wall time: 0.58 s
sage: %time test2(T, L)
CPU times: user 0.67 s, sys: 0.01 s, total: 0.68 s
Wall time: 0.68 s
}}}
Do I understand correctly that your version of `TripleDict` and `MonoDict`
mimics Python's implementation of a dict? Then why is it so much slower?
--
Ticket URL: <http://trac.sagemath.org/ticket/15367#comment:22>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.