You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be interesting to add a configuration to disable support for floats to reduce the flash size?
In my arduino code I avoid using them but when I check the listing file I see many json calls to float functions.
Or could it be possible to let the compiler disable support because I never ask for a float while parsing the Json?
The text was updated successfully, but these errors were encountered:
Would it be interesting to add a configuration to disable support for floats to reduce the flash size?
First, we must make sure that it's worth the effort.
Can you try to remove some parts of the library to see how many bytes you can trim?
could it be possible to let the compiler disable support because I never ask for a float while parsing the Json?
In ArduinoJson 5, this was the case because the library stored all values as strings and parsed floats "lazily".
However, in ArduinoJson 6, the library eagerly parses float values, so the compiler cannot eliminate the code.
(This change significantly reduced string duplication and enabled the JSON to MsgPack use case.)
Would it be interesting to add a configuration to disable support for floats to reduce the flash size?
In my arduino code I avoid using them but when I check the listing file I see many json calls to float functions.
Or could it be possible to let the compiler disable support because I never ask for a float while parsing the Json?
The text was updated successfully, but these errors were encountered: