-
Notifications
You must be signed in to change notification settings - Fork 7
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
App size #146
Conversation
use try call to avoid panic machinery to be added by the compiler optimize for binary size and remove debug symbols
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! To be fair the biggest improvement I saw on avalanche was removing rlib
from the crate types, but it seems like it's not used here, so 🤷...
Anyways, good cleanup!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if those are better with iter_mut or were forgotten
Closing this #145 |
* avoid indexing to reduce binary size use try call to avoid panic machinery to be added by the compiler optimize for binary size and remove debug symbols * update tests * bump app version and update snapshots * Derive Debug only under test * Remove panic-halt to reduce app size * Reduce calls to procedures that can cause panics * Rename LedgerPanic to ApduPanic * fix format * use unreachable_unchecked * some improvements in size * fix return value * Update zxlib * use copy_from_slice and better error report
* avoid indexing to reduce binary size use try call to avoid panic machinery to be added by the compiler optimize for binary size and remove debug symbols * update tests * bump app version and update snapshots * Derive Debug only under test * Remove panic-halt to reduce app size * Reduce calls to procedures that can cause panics * Rename LedgerPanic to ApduPanic * fix format * use unreachable_unchecked * some improvements in size * fix return value * Update zxlib * use copy_from_slice and better error report
This PR aims to reduce the app size, applying some techniques that were used with another Rust app(AVAX):
🔗 zboto Link