sui icon indicating copy to clipboard operation
sui copied to clipboard

refactor: Preallocate capacity for known size vectors

Open howjmay opened this issue 3 months ago • 2 comments

Description

Initialize vector with capacity when the upcoming push() with known times.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • [ ] Protocol:
  • [ ] Nodes (Validators and Full nodes):
  • [ ] Indexer:
  • [ ] JSON-RPC:
  • [ ] GraphQL:
  • [ ] CLI:
  • [ ] Rust SDK:

howjmay avatar May 22 '24 12:05 howjmay

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 1:10pm

vercel[bot] avatar May 22 '24 12:05 vercel[bot]

@howjmay is attempting to deploy a commit to the Mysten Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 22 '24 12:05 vercel[bot]