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

Default Cache Size - Question #17

Open
pauliktamas opened this issue Feb 23, 2016 · 0 comments
Open

Default Cache Size - Question #17

pauliktamas opened this issue Feb 23, 2016 · 0 comments

Comments

@pauliktamas
Copy link

Hello!

I'd like to ask how you built the library. In the "include/mupdf/fitz/context.h" file there is an option for FZ_STORE_DEFAULT which is 256MB. I'm using the mupdf module of your code, and as I keep opening pdf-s, the generated Bitmaps byte[] never seems to free up.

As far as I can tell, mupdf caches the generated Bitmaps until it's size reaches the FZ_STORE_DEFAULT value, which is far greater than an Android OS accepts, as the OS will shut down the app around 180MB.

Did you change that value to a lower value, and I'm doing something wrong, or should I just change it in my code, and rebuild the whole project?

Any help is appreciated!
Thank you!

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

1 participant