forked from romanz/electrs
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Optimize txo lookup #76
Merged
philippem
merged 3 commits into
Blockstream:new-index
from
shesek:202403-txo-lookup-optimizations
Aug 13, 2024
Merged
Optimize txo lookup #76
philippem
merged 3 commits into
Blockstream:new-index
from
shesek:202403-txo-lookup-optimizations
Aug 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shesek
force-pushed
the
202403-txo-lookup-optimizations
branch
2 times, most recently
from
March 25, 2024 19:15
0bbc5f5
to
5913e22
Compare
These optimizations make sense to me. |
shesek
force-pushed
the
202403-txo-lookup-optimizations
branch
2 times, most recently
from
March 26, 2024 18:21
61823dd
to
5e27752
Compare
shesek
force-pushed
the
202403-txo-lookup-optimizations
branch
from
May 22, 2024 23:31
5e27752
to
a0d034d
Compare
- Avoid unnecessary copying of prev outpoints - When looking for both mempool and on-chain txos, accumulate the set of outpoints that remain to be looked up to avoid re-checking for them later again in the found set - Refactored lookup_txos() to use lookup_txo() internally rather than the other way around, which was less efficient - Lookup txos in mempool first, then on-chain - ChainQuery::lookup_txos() now returns a Result instead of panicking when outpoints are missing - Removed ChainQuery::lookup_avail_txos() and allow_missing, which are no longer neceesary
shesek
force-pushed
the
202403-txo-lookup-optimizations
branch
from
May 30, 2024 04:03
a0d034d
to
e9d68b2
Compare
Rebased. |
RCasatta
reviewed
Aug 9, 2024
utACK 4f037c4 |
RCasatta
approved these changes
Aug 13, 2024
Needs rebase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From https://github.com/facebook/rocksdb/wiki/MultiGet-Performance: