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

prealloc capacity for map and slice #29903

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

mask-pp
Copy link
Contributor

@mask-pp mask-pp commented Jun 1, 2024

No description provided.

@karalabe
Copy link
Member

karalabe commented Jun 3, 2024

The change in the beacon api is ok, but the rest is really not a relevant code path. Compiling and ABI parsing happens so rarely that it doesn't make sense to complicate the code for that insignificant perf gain.

@mask-pp
Copy link
Contributor Author

mask-pp commented Jun 3, 2024

The change in the beacon api is ok, but the rest is really not a relevant code path. Compiling and ABI parsing happens so rarely that it doesn't make sense to complicate the code for that insignificant perf gain.

Ok, I see and reverted.

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe added this to the 1.14.4 milestone Jun 3, 2024
@karalabe karalabe merged commit b36c738 into ethereum:master Jun 3, 2024
2 of 3 checks passed
jorgemmsilva pushed a commit to iotaledger/go-ethereum that referenced this pull request Jun 17, 2024
* prealloc capacity for map and slice

* revert unnecessary change
stwiname pushed a commit to subquery/data-node-go-ethereum that referenced this pull request Sep 9, 2024
* prealloc capacity for map and slice

* revert unnecessary change
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