-
Notifications
You must be signed in to change notification settings - Fork 6
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
Replacing go-ipld-prime-proto #6
Comments
This is also an option in IPFS so this actually needs to get fixed everywhere. |
@warpfork @mvdan
It only uses refmt for a handy The main differences you're going to find are in what it means for something to be I did look into the differences with go-ipld-prime-proto at one point, outlined in this comment ipld/go-ipld-prime-proto#5 (comment) (and in further discussion below) - although the " Hopefully these should all be trivial details as far as graphsync, and other consumers are concerned, but it'd be great to hear if anything meaningful pops up that causes real problems! The spec work has mostly been about trying to find an idealised and faithful reconciliation of all of the various interpretations that currently exist. |
As an update - we decided to tackle "decide on a DAG-PB codec and use it everywhere" in the "IPLD in IPFS" project. We went for go-codec-dagpb since it was a bit closer to ipld-prime, it didn't depend on go-merkledag, and we hoped that the spec would work. Plus, it was a good moment to attempt to also make this jump. If we make the jump to ipld-prime with go-ipld-prime-proto, making another jump to go-codec-dagpb later would be more work overall.
That ended up happening in ipld/go-ipld-prime#150 :)
We've found that a go-ipfs with go-codec-dagpb is measurably slower than with go-ipld-prime-proto, so I'm looking at performance now. It's likely that will touch on the reader stuff you mention here. |
That's all done and merged into our "IPLD in IPFS" branch; we're now on par with go-merkledag master. All other users of go-ipld-prime-proto, succh as go-car, have PRs ready switching to this codec too. All in all, I think this is complete and we can close this issue. It might take another week or two for the main chunks of work to land in go-merkledag and go-ipfs, but that's to be expected due to reviews. |
Hey @rvagg,
With this as the "canonical" dagpb implementation, I'd like to look at replacing go-ipld-prime-proto. At the moment, there are some elements missing that prevent me from doing this:
Anyway, I am going to go ahead and update go-ipld-prime-proto to go-ipld-prime v0.7.0, but I'm hoping to work with you so that's the last update. I'd be happy to go over all the features of go-ipld-prime-proto and how they are used so we can figure out how to swap out the libraries for go-graphsync.
The text was updated successfully, but these errors were encountered: