Skip to content
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

Reduce the global struct size #281

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

spalmer25
Copy link
Collaborator

At many times, when some fields were added on some structures, two tests were failing on NanoS:

  • test_tz3_sign_micheline_basic
  • test_tz2_sign_micheline_basic.
    This is caused by an already known issue that signing with tz2 and tz3 needs more memory than for tz1.

This PR reduce the memory space required for the global by reordering structures fields.

Gain of 32*sizeof(uint8_t) memory space.

Also reduce `BUFF_LEN` to its smallest possible size so that the tests
continue to pass
@spalmer25 spalmer25 marked this pull request as ready for review September 12, 2024 10:01
Copy link
Collaborator

@ajinkyaraj-23 ajinkyaraj-23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spalmer25 spalmer25 merged commit a907073 into main Sep 12, 2024
138 checks passed
@spalmer25 spalmer25 self-assigned this Sep 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants