Skip to content

bump geth#39

Open
Liuhaai wants to merge 2 commits intomasterfrom
bump_geth
Open

bump geth#39
Liuhaai wants to merge 2 commits intomasterfrom
bump_geth

Conversation

@Liuhaai
Copy link
Copy Markdown
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/deckarep/golang-set v1.7.1 // indirect
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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.

2 participants