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

collect signatures directly in the right collection #144

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

Ekleog-NEAR
Copy link
Contributor

@Ekleog-NEAR Ekleog-NEAR commented Oct 3, 2022

This avoids creating a Vec to then recreate an Arc with the same information.

In practice, this saves 10% of the time in an example taken from near/nearcore-private#4

The only way in which these variables are only ever used are by converting them into Arcs anyway.

This avoids creating a Vec to then recreate an Arc with the same information.

In practice, this saves 10% of the time in an example taken from nearcore-private#4
@Ekleog-NEAR Ekleog-NEAR requested review from matklad and nagisa October 6, 2022 14:20
@Ekleog-NEAR Ekleog-NEAR merged commit 5eb328e into near:near-main Oct 10, 2022
@Ekleog-NEAR Ekleog-NEAR deleted the collect-in-right-collection branch October 10, 2022 14:12
bors bot added a commit to wasmerio/wasmer that referenced this pull request Nov 21, 2022
3296: Use the right collection when parsing type section r=ptitSeb a=ptitSeb

# Description
Use the right collection when parsing type section

based on near/wasmer#144

For #3305 

Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
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.

2 participants