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

bump geth #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

bump geth #39

wants to merge 2 commits into from

Conversation

Liuhaai
Copy link
Member

@Liuhaai Liuhaai commented Apr 10, 2024

PR purpose: optimization mem allocation by bumping crypto library in Geth
The memory allocation of pubkey deserialization is reduced by 70% in the PR
The results of benchmark test after and before commit

BenchmarkSecp256k1-12             100000               875.2 ns/op           232 B/op          6 allocs/op
PASS
BenchmarkSecp256k1-12             100000              1768 ns/op             872 B/op         13 allocs/op
PASS
image image

github.com/dustinxie/gmsm v1.4.0
github.com/ethereum/go-ethereum v1.10.4
github.com/ethereum/go-ethereum v1.13.5-0.20240410090245-9dcf8aae4742
Copy link
Member Author

@Liuhaai Liuhaai Apr 10, 2024

Choose a reason for hiding this comment

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

I used the lastest commit in the master branch for testing, since geth v1.13.15 hasn't been released yet.

Copy link
Member Author

Choose a reason for hiding this comment

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

For prod usage, we might wait until geth v1.13.15 is released

Copy link
Member

Choose a reason for hiding this comment

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

can we just use v1.13.12 (which is the Cancun release version we use for iotex-core)
Does v1.13.12 fix this memory issue?

Copy link
Member Author

@Liuhaai Liuhaai Apr 10, 2024

Choose a reason for hiding this comment

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

no. pls check the geth's pr ethereum/go-ethereum@ab49f22, which isn't included in v1.13.14

@Liuhaai Liuhaai mentioned this pull request Apr 10, 2024
@Liuhaai
Copy link
Member Author

Liuhaai commented Apr 10, 2024

pls check #40 before merging this

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.

None yet

2 participants