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

Memory usage #9

Open
xro7 opened this issue Feb 22, 2019 · 1 comment
Open

Memory usage #9

xro7 opened this issue Feb 22, 2019 · 1 comment

Comments

@xro7
Copy link

xro7 commented Feb 22, 2019

As i noticed there is no trivial way to free memory allocated in RAM after creating a TextPreProcessor object. I tried remove object reference with: preprocessor = None or del preprocessor but it does not seem to work. Is there something i am missing?

@cbaziotis
Copy link
Owner

The library uses memoization. You can either shrink the maxsize, or call python's garbage collector manually.

import gc

# ekphrasis preproccessing...

gc.collect()

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

No branches or pull requests

2 participants