Skip to content

Conversation

@joncinque
Copy link
Owner

Problem

The current Zig implementation of transfer-lamports is pretty inefficient, still using 186 CUs. This is because v0.13 of the SDK uses many allocations for the provided accounts.

Summary of changes

v0.14.0 of the SDK removes all allocations in the entrypoint, so update the transfer-lamports program to use it. Reduces CUs from 186 to 43, making it more efficient than C!

@joncinque joncinque merged commit f064cf0 into main Oct 11, 2024
22 checks passed
@joncinque joncinque deleted the tlzig branch October 11, 2024 22:28
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