#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 nbruin):
Replying to [comment:5 SimonKing]:
> - Let the default size of coercion caches be smaller. Why don't we make
a test how big the caches become in doctests? If it turns out that most of
the time we only store about 20 coercions, it does not make sense to
create 53 buckets, but 23 would be more than enough.
Given that we should bound the fill ratio by about 60%-70%, that would not
be enough. I expect, however, that many caches have very few entries, so
going with 11 and reshaping when required is likely the best.
> - 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`).
--
Ticket URL: <http://trac.sagemath.org/ticket/15367#comment:6>
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.