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 consumption in one block #7

Open
ferbar opened this issue Apr 15, 2023 · 0 comments
Open

Memory consumption in one block #7

ferbar opened this issue Apr 15, 2023 · 0 comments

Comments

@ferbar
Copy link

ferbar commented Apr 15, 2023

In my ESP32 project there is about 70kB free ram with maxalloc 40kB, so too small for a complete _pngle_t variable. So I changed inflator to *inflator in
https://github.com/kikuchan/pngle/blob/master/src/pngle.c#L120
and added a malloc +free.

i could file a PR with my changes and #ifdef PNGLE_SPLIT_VAR or so...

the same could be done for lz_buf probably. Then the needed maxalloc block would be reduced to 32kB

Thanks!

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