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

chore: add some optimisations to the AccountId creation methods #985

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

aleksuss
Copy link
Member

@aleksuss aleksuss commented Jan 9, 2025

Description

The PR introduces some optimisations to the creation methods of the AccounId struct. Namely, it gets rid of redundant heap allocations.

Performance / NEAR gas cost considerations

There is no changes in the performance.

Testing

The existing tests cover the changes.

@aleksuss aleksuss requested a review from mrLSD January 9, 2025 10:51
@aleksuss aleksuss requested a review from birchmd as a code owner January 9, 2025 10:51
Copy link
Member

@birchmd birchmd left a comment

Choose a reason for hiding this comment

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

Nice one!

@aleksuss aleksuss added this pull request to the merge queue Jan 10, 2025
Merged via the queue into develop with commit c12967b Jan 10, 2025
26 checks passed
@aleksuss aleksuss deleted the chore/aleksuss/account_id_opt branch January 10, 2025 11:38
aleksuss added a commit that referenced this pull request Feb 5, 2025
## Description

The PR introduces some optimisations to the creation methods of the
`AccounId` struct. Namely, it gets rid of redundant heap allocations.

## Performance / NEAR gas cost considerations

There is no changes in the performance.

## Testing

The existing tests cover the changes.
@aleksuss aleksuss mentioned this pull request Feb 5, 2025
aleksuss added a commit that referenced this pull request Feb 5, 2025
## [3.8.0] 2025-02-05

### Changes

- Bumped the SputnikVM up to 0.46.1-aurora by [@mrLSD]. ([#966])
- The nightly rust compiler has been replaced with stable by
[@aleksuss]. ([#977])
- Added changes regarding bumping the `primitive-types` crate by
[@mrLSD]. ([#982])
- The code coverage by clippy has been extended by [@aleksuss]. ([#984])
- The code is changed by the clippy suggestions from the toolchain
1.84.0 by [@mrLSD]. ([#986])
- The precompile `exitToNear` now is compatible with the OMNI bridge by
[@aleksuss]. ([#992])

### Fixes

- Added optimisations to the `AccountId` creation methods by
[@aleksuss]. ([#985])
- The `README.md` has been actualized by [@aleksuss]. ([#978])
- Modified CI scripts by [@aleksuss]. ([#969], [#973], [#975], [#976],
[#981])
- Fixed the vulnerability in the `remove_relayer_key` transaction by
[@aleksuss]. ([#972])

[#966]: #966
[#969]: #969
[#972]: #972
[#973]: #973
[#975]: #975
[#976]: #976
[#977]: #977
[#978]: #978
[#981]: #981
[#982]: #982
[#984]: #984
[#985]: #985
[#986]: #986
[#992]: #992

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: cuibuwei <[email protected]>
Co-authored-by: Evgeny Ukhanov <[email protected]>
Co-authored-by: omahs <[email protected]>
Co-authored-by: Elias Rad <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: cuibuwei <[email protected]>
Co-authored-by: NotNotARobot <[email protected]>
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