-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Move smart vector/table to framework #6823
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you run the gas benchmarking with the 100x reduction in Alden's PR?
It's the old one. I will update. |
55e9685
to
9020778
Compare
now with the new gas schedule, they outperform vector/table for large datasets in all aspects except for the creation of huge vector. I think it is both reasonable and acceptable according to current storage fee pricing. cc @msmouse |
Why is creation of huge smart vector more expensive than creating a huge vector? And how huge is huge? Is it more than 1 KB of data total? |
Because it involves some extra logic to find the right bucket, etc. It also 100% fully utilize 1kb free quota. by huge I mean way more than 1kb, here 10000 * size_of(u64) I suppose 80kb. |
9020778
to
9469007
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lightmark , the docs here LGTM with some tiny comments I left inline. Perhaps the Move team would be alright with me editing the source files directly sometime (rather than comment on the Markdown output).
I am also asking for your, @wrwg and the team's opinion on including these wonderful additions in the relevant release notes. They seem significant, so I have created and added a release-notes tag to see if we can capture and highlight such changes.
See this issue comment for more details:
#6373 (comment)
Thanks!
9469007
to
19f9ecf
Compare
@clay-aptos Hey I think it is a really good idea to include it in the release notes as we wanna promoting the usage of the new gas-saving data structures. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
19f9ecf
to
eda1ad0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i trust you
eda1ad0
to
495a3d0
Compare
Where is the "before" numbers? 😁 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
495a3d0
to
f969295
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
big_vector, smart_vector, smart_table
toaptos_std
After the gas change #6816, it becomes:
Test Plan
unit test