-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid float-double-conversion (#7559)
Converting floats to doubles is very expensive on esp8266, so prefer calculations or comparisons as float. This saves 10% (20 bytes) of the String::parseFloat() code size and probably quite a bit of runtime overhead.
- Loading branch information
1 parent
5987390
commit 953dfd9
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters