Skip to content

Conversation

@Buzzec
Copy link

@Buzzec Buzzec commented Aug 26, 2025

Added safer code for Account. Removed copy and clone from Account. Changed lamports functions to operate on a Cell.

Should also be a bit more efficient in a few places.

Copy link
Contributor

@sonicfromnewyoke sonicfromnewyoke left a comment

Choose a reason for hiding this comment

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

overall idea is nice

however to me it looks like this MR can be split into 3-4 smaller ones

@Buzzec Buzzec marked this pull request as ready for review August 26, 2025 20:50
@Buzzec
Copy link
Author

Buzzec commented Aug 26, 2025

Going to stack another PR to optimize the data locking now that lamports doesn't use it

@Buzzec
Copy link
Author

Buzzec commented Aug 26, 2025

Going to stack another PR to optimize the data locking now that lamports doesn't use it

Stacked PR: staratlasmeta#1

@febo
Copy link
Collaborator

febo commented Aug 26, 2025

@Buzzec This is great, thank you! Could you please bump the solana cli version to 2.3.0 here: https://github.com/anza-xyz/pinocchio/blob/main/Cargo.toml#L31

This will bump the rust version used in CI to 1.84.1.

@Buzzec
Copy link
Author

Buzzec commented Aug 26, 2025

@Buzzec This is great, thank you! Could you please bump the solana cli version to 2.3.0 here: https://github.com/anza-xyz/pinocchio/blob/main/Cargo.toml#L31

This will bump the rust version used in CI to 1.84.1.

Done

@Buzzec
Copy link
Author

Buzzec commented Aug 26, 2025

With 1.84 we can fix the Miri issues as well, will do that in another PR

@febo
Copy link
Collaborator

febo commented Aug 26, 2025

With 1.84 we can fix the Miri issues as well, will do that in another PR

Good point – separate PR sounds good!

@Buzzec
Copy link
Author

Buzzec commented Aug 26, 2025

With 1.84 we can fix the Miri issues as well, will do that in another PR

Good point – separate PR sounds good!

Stacked it staratlasmeta#2

Buzzec added 5 commits August 27, 2025 12:08
# Conflicts:
#	sdk/pinocchio/src/account_info.rs
#	sdk/pinocchio/src/entrypoint/mod.rs
@febo
Copy link
Collaborator

febo commented Sep 5, 2025

@Buzzec Thanks for this, really nice stuff. I started to look into the Account/AccountInfo changes. One thing that I noticed is that the performance of the entrypoint got a hit from the changes, can't pinpoint exactly where at the moment.

Name CUs (before) CUs (after) Delta
Account (1) 17 21 +4
Account (2) 30 37 +7
Account (3) 37 50 +13
Account (4) 45 63 +18
Account (8) 78 118 +40
Account (16) 143 227 +84
Account (32) 261 430 +169
Account (64) 504 846 +342

I am planning to add your changes incrementally to isolate what change is slowing things down.

@Buzzec
Copy link
Author

Buzzec commented Sep 15, 2025

Any discoveries here?

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.

3 participants