Skip to content

[SOL] Fine tune memcmp threshold #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

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

LucasSte
Copy link
Collaborator

@LucasSte LucasSte commented Jul 1, 2025

Problem

Using three as the limit to invoke the memcmp syscall is not the best option in terms of CU consumption.

Solution

Increasing it to four decreases CUs in benchmarks. See solana-program/token#64 (comment)

@LucasSte LucasSte requested a review from Lichtso July 1, 2025 20:44
@LucasSte LucasSte marked this pull request as ready for review July 1, 2025 20:44
@LucasSte LucasSte merged commit 19418b8 into anza-xyz:solana-rustc/19.1-2024-12-03 Jul 1, 2025
18 checks passed
@LucasSte LucasSte deleted the fine-tune branch July 1, 2025 21:35
LucasSte added a commit to LucasSte/llvm-project that referenced this pull request Aug 12, 2025
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