Sitelet https://github.com/crankyoldgit/IRremoteESP8266/issues/1493
Skip to content

Suggestion for Lower Memory Usage #1493

Description

@Pecacheu

This isn't so much an issue but I have a question. This library really seems to be a massive ROM/RAM hog and I think part of the reason is all those non-PROGMEM global const vars, why use them instead of macros? Such things as the long lists of const uint8_t kDefaultBlahBlah = x found in all the header files.

RAM is a precious resource on ESP CPUs, and while this lib is well within the limits (so this is hardly of immidiate concern), I think it could be improved if the global vars were kept to a minimum, using compiler macro #defines or PROGMEM where possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions