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

Reduce memory footprint by 1.5K #52

Merged
merged 8 commits into from
Oct 13, 2016
Merged

Reduce memory footprint by 1.5K #52

merged 8 commits into from
Oct 13, 2016

Conversation

mddub
Copy link
Owner

@mddub mddub commented Oct 13, 2016

Graphing future predictions will require a larger AppMessage buffer and more space for the DataMessage struct (and, of course, memory for the new code). In order to support this feature on Aplite, the existing memory usage must be reduced significantly.

Before:

APLITE APP MEMORY USAGE
Total size of resources:        5940 bytes / 128KB
Total footprint in RAM:         19957 bytes / 24KB
Free RAM available (heap):      4619 bytes

Heap free (layout "C"):         552 bytes

After:

APLITE APP MEMORY USAGE
Total size of resources:        5940 bytes / 128KB
Total footprint in RAM:         18389 bytes / 24KB
Free RAM available (heap):      6187 bytes

Heap free (layout "C"):         2120 bytes

@mddub mddub merged commit 870f11e into master Oct 13, 2016
@mddub mddub deleted the save-memory branch October 13, 2016 03:56
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

Successfully merging this pull request may close these issues.

1 participant