Open mar0x opened 1 year ago
Memory usage change @ 1cf02f6d8fea593b83b9bdb96a75e3a9ca402b93
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:avr:LilyPadUSB | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:atmegang:cpu=atmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:atmegang:cpu=atmega8 | :small_red_triangle: 0 - +10 | 0.0 - +0.14 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:bt:cpu=atmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:bt:cpu=atmega328 | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:chiwawa | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:circuitplay32u4cat | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | N/A |
arduino:avr:diecimila:cpu=atmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:diecimila:cpu=atmega328 | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:esplora | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:ethernet | :small_red_triangle: 0 - +8 | 0.0 - +0.02 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:fio | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:gemma | 0 - 0 | 0.0 - 0.0 | 0 - 0 | N/A |
arduino:avr:leonardo | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:leonardoeth | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:lilypad:cpu=atmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:lilypad:cpu=atmega328 | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mega:cpu=atmega1280 | :small_red_triangle: 0 - +8 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mega:cpu=atmega2560 | :small_red_triangle: 0 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:megaADK | :small_red_triangle: 0 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:micro | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mini:cpu=atmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mini:cpu=atmega328 | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:nano:cpu=atmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:nano:cpu=atmega328 | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:nano:cpu=atmega328old | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:one | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=16MHzatmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=16MHzatmega328 | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=8MHzatmega168 | :small_red_triangle: 0 - +8 | 0.0 - +0.06 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=8MHzatmega328 | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:robotControl | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:robotMotor | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno | :small_red_triangle: 0 - +8 | 0.0 - +0.02 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:unomini | :small_red_triangle: 0 - +8 | 0.0 - +0.02 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:unowifi | :small_red_triangle: 0 - +8 | 0.0 - +0.02 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:yun | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:yunmini | :small_red_triangle: 0 - +8 | 0.0 - +0.03 | 0 - 0 | 0.0 - 0.0 |
Memory usage change @ 045f47570c5d5a9ec8826152abfa38b766a74d5e
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:avr:LilyPadUSB | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:atmegang:cpu=atmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:atmegang:cpu=atmega8 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:bt:cpu=atmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:bt:cpu=atmega328 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:chiwawa | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:circuitplay32u4cat | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | N/A |
arduino:avr:diecimila:cpu=atmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:diecimila:cpu=atmega328 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:esplora | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:ethernet | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:fio | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:gemma | 0 - 0 | 0.0 - 0.0 | 0 - 0 | N/A |
arduino:avr:leonardo | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:leonardoeth | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:lilypad:cpu=atmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:lilypad:cpu=atmega328 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mega:cpu=atmega1280 | :green_heart: -2 - 0 | -0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mega:cpu=atmega2560 | :green_heart: -2 - 0 | -0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:megaADK | :green_heart: -2 - 0 | -0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:micro | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mini:cpu=atmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mini:cpu=atmega328 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:nano:cpu=atmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:nano:cpu=atmega328 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:nano:cpu=atmega328old | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:one | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=16MHzatmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=16MHzatmega328 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=8MHzatmega168 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:pro:cpu=8MHzatmega328 | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:robotControl | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:robotMotor | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:unomini | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:unowifi | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:yun | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:yunmini | :green_heart: -2 - 0 | -0.01 - 0.0 | 0 - 0 | 0.0 - 0.0 |
It is worth to use memcpy() to avoid extra checks. Furthermore, it fixes possible issues when copied WString has zero byte stored intentionally.