Flash footprint optimization #662
1technophile
started this conversation in
Ideas
Replies: 3 comments 6 replies
-
|
If we push the idea further by also replacing:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I'd suggest making a python script to do the text replacement at build time to avoid changing the documentation/api. Better yet is to precompile into a array of JSON objects, this would be more work though. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Another possibility is to replace the json char array with a struct based approach, savings would be huge |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm thinking that we could reduce the decoder footprint by optimizing the size of the keys used in the devices decoder.
Without changing the API it seems that there is some significant opportunities, example:
Replacing "servicedata" by "svd" and "manufacturerdata" by "mfd"
Example:
Save around 11500 bytes, I haven't tested the change yet but wanted to bounce the idea.
Beta Was this translation helpful? Give feedback.
All reactions