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

rework MultiFieldReview to use less stack #120

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

yhql
Copy link
Contributor

@yhql yhql commented Jan 17, 2024

Preallocating 48 Pages led to a huge stack usage and to crashes on Nano S.
This gadget was reworked so that it does not preallocate, and makes it "simpler" to visualize Fields by giving them their own widget (similar to MessageScroller in behaviour, except with a counter and a different amount of lines used).

Note that MAX_LINES was changed to 4 (was previously 3) for Nano X/S+ to avoid ifdefs to match the C version of the Field view, but as a consequence, a Menu now displays over 4 lines.

@yhql yhql force-pushed the fix/multifield_stack branch from d36653e to c85cda1 Compare January 17, 2024 14:15
@yogh333
Copy link
Contributor

yogh333 commented Jan 18, 2024

FYI I have tested this branch with app-boilerplate-rust (see here) and all tests are OK (with --golden_run option as some snapshots are modified due to this). And good news, all tests still OK with the last nightly (17/01/2024).

@yhql yhql force-pushed the fix/multifield_stack branch from c85cda1 to 24e2d96 Compare January 24, 2024 17:09
@yhql yhql force-pushed the fix/multifield_stack branch from 24e2d96 to 265f326 Compare January 24, 2024 17:29
@yhql yhql requested a review from yogh333 January 25, 2024 09:08
Copy link
Contributor

@yogh333 yogh333 left a comment

Choose a reason for hiding this comment

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

Bump version

@yogh333 yogh333 merged commit 8211c9d into master Jan 25, 2024
22 checks passed
@yogh333 yogh333 deleted the fix/multifield_stack branch January 25, 2024 09:25
@dj8yfo dj8yfo mentioned this pull request Jan 25, 2024
70 tasks
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.

4 participants