Skip to content

Memory consumption in one block #7

@ferbar

Description

@ferbar

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!

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