Check effectiveness of 5.0.0 fix to memory leak in NamespaceManager #1572
joernhees
started this conversation in
TO-DO list
Replies: 1 comment
-
This needs testing for 6.0.0 to see if the namespace tidy-up functions added in 5.0.0 have changed this scenario. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in its current form
NamespaceManager
has a__cache = {}
attrib:https://github.com/RDFLib/rdflib/blob/master/rdflib/namespace.py#L286
while there is a
reset()
i am living proof that this can cause days of debugging to find a memory leak... turns outNamespaceManager
held refs to all URIs it ever saw... great.If i find time and no one objects, i'd add
cachetools
as dependency and use aLRUCache
and make its size configurable....Beta Was this translation helpful? Give feedback.
All reactions