-
-
Notifications
You must be signed in to change notification settings - Fork 55
IPLD Support #200
Comments
cc @satazor |
Also related to #106 |
@aphelionz @haadcode it would be awesome if we could upgrade to latest js-ipfs version because the dag api has changed since the version that is currently installed, see: https://github.com/ipfs/js-ipfs/blob/master/CHANGELOG.md#breaking-changes-1 Do you see any problem with upgrading first? |
No problem. In fact if you look at this PR I've upgraded with no issue: https://github.com/orbitdb/ipfs-log/pull/189/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R29 |
Got the thing almost ready. It’s difficult when you need to access documentation but you don’t have internet in a plane :(. Well, one more flight to go, then I’m finally home. |
An update: I got all test passing but I had to increate the timeout to 60sec. It seems that by using CBOR, things got a lot slower! I'm still investigating. |
e.g.: this is
vs
This is orders of magnitude slower. //cc @alanshaw could you please advise? 🙏 |
I've switched to using |
These numbers have quite a huge difference. I'm thinking could it be something to do with fetching from disk (dag.get) vs. fetching from cache (object.get)? |
Hey @satazor I looked into this today and made changes to use the ipfs.dag api. I haven't experienced this slow-down. Which version of node are you using? |
@shamb0t I've just checkout your branch and I have the exact same slowdown. Basically the replication tests timeout because they take a lot of time. It seems that it's something related to my machine.
I will ask @vasco-santos to test on his machine. |
I have tried it out with @shamb0t PR orbitdb/ipfs-log#210, with a fresh clone and install, but the |
So, it seems that @vasco-santos is having the same problem that I experience. Raising the timeout to 60s solves the problem but that specific test passes in under 4s when using the object api vs 40+ sec when using the dag api. |
@satazor @vasco-santos thanks guys! Looks like this is indeed an issue, will look into it further |
A quick clarification on:
In the replication test, we use |
Didn't realize we were monkey-patching to evade hitting disk 😅 so that explains the slow-down without it. As @haadcode mentioned this is fixed now and the replication tests should complete in the usual 3-4s |
Happy holidays everyone and thank you @satazor for the PR! ❤️ we'll continue from there |
From: ipfs-inactive/dynamic-data-and-capabilities#50
Support IPLD now that js-ipfs has it via the dag.put and dag.get functions. This allows us to use the IPLD query language and use explorer.ipld.io to debug.
The text was updated successfully, but these errors were encountered: