Skip to content

Default Cache Size - Question #17

@pauliktamas

Description

@pauliktamas

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions