Skip to content

memory improvement of the print.cpp lib #193

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

Closed
RobTillaart opened this issue Jan 13, 2013 · 2 comments
Closed

memory improvement of the print.cpp lib #193

RobTillaart opened this issue Jan 13, 2013 · 2 comments
Assignees

Comments

@RobTillaart
Copy link

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.

@RobTillaart
Copy link
Author

RobTillaart commented Jan 13, 2013

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.

@sandeepmistry sandeepmistry transferred this issue from arduino/Arduino Sep 16, 2019
@RobTillaart
Copy link
Author

too old to be relevant anymore

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

No branches or pull requests

2 participants