-
-
Notifications
You must be signed in to change notification settings - Fork 704
Closed
Description
Burcin reported at #4639:
sage: F = GF(13)
sage: get_memory_usage()
708.02734375
sage: for _ in xrange(10000):
....: t = F.coerce(F(234234))
....:
sage: get_memory_usage()
728.15234375
sage: for _ in xrange(100000):
t = F.coerce(F(234234))
....:
sage: get_memory_usage()
932.3125
sage: for _ in xrange(100000):
t = F.coerce(F(234234))
....:
sage: get_memory_usage()
1136.35546875
Since the patch by RobertWB at that ticket fixes the issue Burcin reported, but not the original one I am moving it over to this ticket.
Cheers,
Michael
Apply
attachment: trac4740-cache_coerce_from_self.patch
Depends on #14519
CC: @burcin @robertwb @simon-king-jena
Component: memleak
Author: Simon King
Reviewer: Mike Hansen
Merged: sage-5.12.beta3
Issue created by migration from https://trac.sagemath.org/ticket/4740