Skip to content

add 'NO_GLOBAL_UPDATE' define to disable global UpdateClass instance#8500

Merged
me-no-dev merged 1 commit intoespressif:masterfrom
vortigont:updtr_mem
Aug 29, 2023
Merged

add 'NO_GLOBAL_UPDATE' define to disable global UpdateClass instance#8500
me-no-dev merged 1 commit intoespressif:masterfrom
vortigont:updtr_mem

Conversation

@vortigont
Copy link
Copy Markdown
Contributor

Saves 180 bytes of RAM if UpdateClass instance is not required in project
follows same semantics as for
NO_GLOBAL_HTTPUPDATE
NO_GLOBAL_ARDUINOOTA

P.S. I could come up with PR for refactored UpdateClass where MD5Builder _md5 member is created on-demand allocating from a heap for the duration of update. Could save about 100 bytes for global UpdateClass instance. but I'm not sure it worth the efforts and would be accepted. Let me know.

…stance

Save 180 bytes of ram if UpdateClass instance is not required
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 8, 2023

CLA assistant check
All committers have signed the CLA.

@VojtechBartoska VojtechBartoska added the Status: Awaiting triage Issue is waiting for triage label Aug 28, 2023
@VojtechBartoska VojtechBartoska added the Status: Review needed Issue or PR is awaiting review label Aug 28, 2023
@me-no-dev me-no-dev merged commit f0910e6 into espressif:master Aug 29, 2023
@vortigont vortigont deleted the updtr_mem branch August 29, 2023 12:08
vortigont added a commit to vortigont/FireLamp_JeeUI that referenced this pull request Sep 22, 2023
would save 180 bytes on Updater class instance
espressif/arduino-esp32#8500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Awaiting triage Issue is waiting for triage Status: Review needed Issue or PR is awaiting review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants