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

[SOL] Fine tune memory operations threshold #134

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

LucasSte
Copy link
Collaborator

@LucasSte LucasSte commented Feb 7, 2025

The threshold for invoking the library functions was not properly tuned for CU consumption. I changed the thresholds so that we call the library if the expansion emits more than ten instructions.

I'm assuming this change will be used together with anza-xyz/compiler-builtins#31.

Thanks to @febo for bringing this up.

@LucasSte LucasSte marked this pull request as ready for review February 11, 2025 14:47
@LucasSte LucasSte requested a review from Lichtso February 11, 2025 14:47
@LucasSte LucasSte merged commit 7596e75 into anza-xyz:solana-rustc/18.1-2024-05-19 Feb 11, 2025
17 checks passed
@LucasSte LucasSte deleted the mem-ops branch February 11, 2025 18:08
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