#5970: [with patch, needs work] Weak references in Polynomial Ring cache
---------------------------------+------------------------------------------
Reporter: SimonKing | Owner: malb
Type: defect | Status: new
Priority: major | Milestone: sage-4.0
Component: commutative algebra | Keywords: polynomial ring cache weak
reference
---------------------------------+------------------------------------------
Comment(by AlexGhitza):
In case this might help somebody working on this, I've attached a small
file with test functions for checking the memory usage for loops with
elliptic curve, plane curves, and just polynomial rings. It should be
fairly easy to use:
{{{
----------------------------------------------------------------------
| Sage Version 3.4.2.rc0, Release Date: 2009-04-30 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: attach test.sage
sage: test_poly_leak(2^17)
271.75390625
}}}
This indicates that the memory usage after the loop is 271MB more than
before.
Note also that if you run different tests one after the other you can see,
e.g. how much of the leakage in elliptic curves is "independent" of the
polynomial ring issue:
{{{
----------------------------------------------------------------------
| Sage Version 3.4.2.rc0, Release Date: 2009-04-30 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: attach test.sage
sage: test_poly_leak(2^17)
271.73046875
sage: test_ec_leak(2^17)
53.10546875
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5970#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---