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

Move time function strings/consts to PMEM #3

Conversation

earlephilhower
Copy link

This patch is related to esp8266/Arduino#3740 , increasing heap RAM on the ESP8266 by moving library constants into ROM.

asctime has the months of the year and day of the week as a set of
constant strings. Move them to progmem to save 3*(7+12) = 57 bytes.
mktime has a couple array of 12 ints, move to PMEM, save 96 bytes.
strptime has 12 ints (duplicated from mktime!), move to PMEM, save 48 bytes.

asctime has the months of the year and day of the week as a set of
constant strings.  Move them to progmem to save 3*(7+12) = 57 bytes.
mktime has a couple array of 12 ints, move to PMEM, save 96 bytes.
strptime has 12 ints (duplicated from mktime!), move to PMEM, save 48 bytes.
@igrr
Copy link
Owner

igrr commented Jan 11, 2018

This PR looks good, subject to common comments given in previous MR.

@earlephilhower
Copy link
Author

Closing in lieu of #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants