BitBoxSwiss / bitbox02-firmware

Firmware code of the BitBox02 hardware wallet
https://bitbox.swiss/bitbox02
Apache License 2.0
215 stars 80 forks source link

erc20 params binary efficiency improvements #1215

Closed benma closed 1 month ago

benma commented 1 month ago

Multi firmware before: 755504 bytes After: 747472 745872 bytes Diff: -8032 9632 bytes

benma commented 1 month ago

@asi345 I removed another ~1 byte per token by removing the null terminator byte for the unit strings and grouping the tokens by unit string length too.