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
Many functions in the print.cpp lib use a int base as second argument. As bases above 255 are never seen all these params can be brought back to uint8_t base.
Furthermore the #digits for the printing of floats can also be an uint8_t
When testing a sketch it uses 14 bytes less (from 2006 bytes to 1992 bytes)
As print is a base class for several other classes this adds up.
The text was updated successfully, but these errors were encountered:
Might be done together with other print.cpp fixes like - Issue arduino/Arduino#884 -
Posted some additional memory improvements of the print.cpp in the printNumber() and printFloat() in the thread mentioned. Together these remove >300 bytes from the print lib.
Many functions in the print.cpp lib use a int base as second argument. As bases above 255 are never seen all these params can be brought back to uint8_t base.
Furthermore the #digits for the printing of floats can also be an uint8_t
When testing a sketch it uses 14 bytes less (from 2006 bytes to 1992 bytes)
As print is a base class for several other classes this adds up.
The text was updated successfully, but these errors were encountered: