-
Notifications
You must be signed in to change notification settings - Fork 160
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
Optimize truncate_stack procedure #1384
Conversation
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.
Looks good! Thank you! I left one minor nit inline.
Also - let's update the changelog. And a question: do we already have good tests covering this procedure? |
In the changelog should I write about change in cycle count and number of locals? I think that tests for this procedure are fairly decent: we have both basic test and a proptest here. |
I would just say something like "Optimized |
808deb3
to
68464f2
Compare
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.
Looks good! Thank you!
This small PR changes the implementation of the
sys::truncate_stack
procedure in thestdlib
to make it more efficient, as it was described in the related issue: #1334.