replace go-dsqueue#1177
Draft
gammazero wants to merge 11 commits into
Draft
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #1177 +/- ##
==========================================
- Coverage 63.83% 63.80% -0.04%
==========================================
Files 269 269
Lines 27047 27054 +7
==========================================
- Hits 17266 17262 -4
- Misses 8071 8080 +9
- Partials 1710 1712 +2
... and 13 files with indirect coverage changes 🚀 New features to boost your workflow:
|
61157c9 to
bbc1704
Compare
This file contains hidden or 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
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.
Replace the provide queue use of go-dsqueue with cascadeq, in boxo and go-libp2p-kad-dht
The intended benefits are:
The efficiency of go-dsqueue depends on the ability of the datastore in use to support ordered query responses without reading all queued items into memory to provide that ordering of queued item(s). With go-dsqueue is it also necessary to store additional ordering information with each queued item, taking up additional space.
Using cascadeq eliminates the need for a datastore implementation to efficiently return ordered query results as these are always stored in queue order when persisted to disk. Storage is also more efficient as there is no need to store additional ordering information with each item.
A potential downside to this PR is the case where is user wants all data written to S3, so an S3-backed datastore is used. In this case, cascadeq would not allow the user to write all data to S3, without some additional work.
Kubo PR: ipfs/kubo#11364
go-libp2p-kad-dht PR: libp2p/go-libp2p-kad-dht#1266