#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):

 Replying to [comment:6 nbruin]:
 > Given that we should bound the fill ratio by about 60%-70%, that would
 not be enough.

 What is the theory behind this choice?

 > > - Only create the dictionaries when we actually need them. I should
 add: Do not initialise ''all'' coercion caches of a parent at once.
 >
 > Hm, I wonder how the cost of that works out. Another option: make
 !MonoDict etc. lazy in actually allocating the buckets (i.e., upon
 creation, just set `self._buckets=None`).

 Good idea! So, do not be lazy in coercion initialisation of Parent, but be
 lazy in the underlying data structure.

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