Skip to content

core/rawdb: enhance database key construction #32431

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

Merged
merged 4 commits into from
Aug 19, 2025

Conversation

cuiweixie
Copy link
Contributor

@cuiweixie cuiweixie commented Aug 14, 2025

goos: darwin
goarch: arm64
pkg: github.com/ethereum/go-ethereum/core/rawdb
cpu: Apple M4
                            │   old.txt   │               new.txt               │
                            │   sec/op    │   sec/op     vs base                │
StorageHistoryIndexBlockKey   32.64n ± 2%   19.09n ± 1%  -41.51% (p=0.000 n=10)

                            │   old.txt   │              new.txt               │
                            │    B/op     │    B/op     vs base                │
StorageHistoryIndexBlockKey   144.00 ± 0%   80.00 ± 0%  -44.44% (p=0.000 n=10)

                            │  old.txt   │              new.txt               │
                            │ allocs/op  │ allocs/op   vs base                │
StorageHistoryIndexBlockKey   2.000 ± 0%   1.000 ± 0%  -50.00% (p=0.000 n=10)

@rjl493456442 rjl493456442 changed the title core: opt storageHistoryIndexBlockKey core/rawdb: enhance database key construction Aug 15, 2025
@rjl493456442 rjl493456442 added this to the 1.16.3 milestone Aug 19, 2025
@rjl493456442 rjl493456442 merged commit 42bf484 into ethereum:master Aug 19, 2025
2 of 5 checks passed
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