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

Optimize truncate_stack procedure #1384

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Conversation

Fumuran
Copy link
Contributor

@Fumuran Fumuran commented Jul 8, 2024

This small PR changes the implementation of the sys::truncate_stack procedure in the stdlib to make it more efficient, as it was described in the related issue: #1334.

@Fumuran Fumuran linked an issue Jul 8, 2024 that may be closed by this pull request
@Fumuran Fumuran requested a review from bobbinth July 8, 2024 13:25
Copy link
Contributor

@bobbinth bobbinth left a 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.

stdlib/asm/sys.masm Outdated Show resolved Hide resolved
@bobbinth bobbinth requested a review from plafer July 8, 2024 17:29
@bobbinth
Copy link
Contributor

bobbinth commented Jul 8, 2024

Also - let's update the changelog.

And a question: do we already have good tests covering this procedure?

@Fumuran
Copy link
Contributor Author

Fumuran commented Jul 8, 2024

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.

@bobbinth
Copy link
Contributor

bobbinth commented Jul 8, 2024

In the changelog should I write about change in cycle count and number of locals?

I would just say something like "Optimized std::sys::truncate_stuck procedure".

@Fumuran Fumuran force-pushed the andrew-optimize-truncate-stack branch from 808deb3 to 68464f2 Compare July 8, 2024 21:00
Copy link
Contributor

@bobbinth bobbinth left a 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!

@Fumuran Fumuran merged commit d774b7f into next Jul 8, 2024
15 checks passed
@Fumuran Fumuran deleted the andrew-optimize-truncate-stack branch July 8, 2024 21:12
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.

Optimization of sys::truncate_stack procedure in stdlib
2 participants