Skip to content
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

use Vec::with_capacity avoid realloc #883

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nkysggsy
Copy link

@nkysggsy nkysggsy commented Dec 22, 2024

[Link to related issue(s) here, if any]

[Short description of the changes.]
use Vec::with_capacity avoid realloc

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • If performance characteristic of an instruction change, update gas costs as well or make a follow-up PR for that
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

After merging, notify other teams

[Add or remove entries as needed]

@fuel-cla-bot
Copy link

fuel-cla-bot bot commented Dec 22, 2024

Thanks for the contribution! Before we can merge this, we need @nkysggsy to sign the Fuel Labs Contributor License Agreement.

@nkysggsy nkysggsy force-pushed the use_vec_with_capacity branch from 43fc8b3 to b2a1441 Compare December 22, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant