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

perf: migrate rbtree to js-sdsl #2285

Merged
merged 2 commits into from Sep 15, 2022

Conversation

ZLY201
Copy link
Contributor

@ZLY201 ZLY201 commented Sep 14, 2022

Linked issue: #2283.

@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Merging #2285 (81758f8) into master (295deaa) will increase coverage by 0.01%.
The diff coverage is 89.65%.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 92.89% <ø> (ø)
blockchain 88.47% <ø> (ø)
client 86.95% <ø> (ø)
common 98.09% <ø> (ø)
devp2p 92.40% <ø> (+0.10%) ⬆️
ethash ?
evm 79.23% <ø> (ø)
rlp ?
statemanager 88.45% <89.65%> (-0.02%) ⬇️
trie 90.36% <ø> (ø)
tx 97.98% <ø> (ø)
util 91.67% <ø> (ø)
vm 85.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

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

Hmm, have looked at the local code changes, all looks reasonable.

Also the broader VM test suite is passing with this, so this is a strong indicator that things are working as expected since StateManager is really used heavily in there.

So: think we can merge. 😄

Again, thanks a lot, great PR! 🙏


import type { Address } from '@ethereumjs/util'

const Tree = require('functional-red-black-tree')
// eslint-disable-next-line implicit-dependencies/no-implicit
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, these shouldn't be necessary I guess, maybe you've forgotten to rebuild or to restart your editor or something? 🤔

Anyhow: won't trigger a new CI run just for that, have added to our #2105 issue for small fixes.

@@ -69,7 +69,6 @@
"async-eventemitter": "^0.2.4",
"debug": "^4.3.3",
"ethereum-cryptography": "^1.1.2",
"functional-red-black-tree": "^1.0.1",
Copy link
Member

Choose a reason for hiding this comment

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

Oh. Seems this was simply forgotten after the state manager extraction work. 🙂

Good catch! 👍

@holgerd77 holgerd77 merged commit cfa99af into ethereumjs:master Sep 15, 2022
@gitpoap-bot
Copy link

gitpoap-bot bot commented Sep 15, 2022

Woohoo, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2022 EthereumJS Contributor:
GitPOAP: 2022 EthereumJS Contributor GitPOAP Badge

Head on over to GitPOAP.io and connect your GitHub account to mint!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants