#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:           |    Reviewers:
Report Upstream:  N/A      |  Work issues:
         Branch:           |       Commit:
   Dependencies:           |     Stopgaps:
---------------------------+-------------------------

Comment (by SimonKing):

 To test whether the dimension of the dicts is too big at initialisation,
 it makes sense to see how often a resize of `MonoDict` and `TripleDict`
 happens.

 First findings:

 - During startup of Sage, there is no resize of a `MonoDict`. There is
 exactly one `TripleDict` that is resized, and it is actually resized three
 times.
 - The size of a `MonoDict` or `TripleDict` is always (by automatic resize)
 ''smaller'' than the number of buckets. The first resize of the
 `TripleDict` mentioned above happens when it has 53 buckets but 38 items
 (and after resize, it has thus 107 buckets for 38 items!)

 I will now see what happens during doctests.

 Question: Is it really a good idea to have 107 buckets for 38 items?

--
Ticket URL: <http://trac.sagemath.org/ticket/15367#comment:7>
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.

Reply via email to