Skip to content

Conversation

@0x0ece
Copy link
Contributor

@0x0ece 0x0ece commented Aug 26, 2025

Inspired by the work in solana-program/token#81, I noticed that the initial deserialization had an unnecessary case (hot path). Therefore the following case with >2 accounts was a cold path, and was consuming 1 unnecessary CU to jump back.

After this PR all ixs with >2 accounts, in particular p-token.transfer() / transfer_checked() consume 1 less CU.

Copy link
Collaborator

@febo febo left a comment

Choose a reason for hiding this comment

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

👍

@febo febo merged commit 8935d5d into anza-xyz:main Aug 27, 2025
11 checks passed
febo added a commit that referenced this pull request Sep 5, 2025
febo added a commit that referenced this pull request Sep 9, 2025
Revert "entrypoint: remove unnecessary deser case (#233)"

This reverts commit 8935d5d.
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