Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider limiting cache size for namespace manager #868

Open
gromgull opened this issue Oct 28, 2018 · 2 comments
Open

Consider limiting cache size for namespace manager #868

gromgull opened this issue Oct 28, 2018 · 2 comments

Comments

@gromgull
Copy link
Member

@gromgull gromgull commented Oct 28, 2018

Currently we save every URI ever qname'd forever in here: https://github.com/RDFLib/rdflib/blob/master/rdflib/namespace.py#L289

If you serialize a big graph in a store that is off disk, we may run out of memory.

Either:

@tgbugs
Copy link
Contributor

@tgbugs tgbugs commented Oct 28, 2018

Related #739

@joernhees joernhees self-assigned this Oct 29, 2018
@joernhees joernhees added this to the rdflib 5.0.0 milestone Oct 29, 2018
@joernhees
Copy link
Member

@joernhees joernhees commented Oct 29, 2018

as long as we have py2 support, i'd say cachetools is the way to go...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.