-
Notifications
You must be signed in to change notification settings - Fork 104
WIP: The DAG API #99
WIP: The DAG API #99
Conversation
64ba3de to
9a37fb9
Compare
|
I want to bring to the DAG API a way to manipulate IPLD objects through paths (aka Patch) and also, have a way to have More on the On the const wb = ipfs.dag.bench()
wb.put..
wb.put..
wb.patch..
const c1 = wb.commit.. // commits a root by pinCaching all of its nodes
...
const c2 = wb.commit.. //
...
wb.revert(c1) // revert to commit c1
..
wb.flush(rootOfTheDag)This is something similar to what First steps:
|
9a37fb9 to
e238443
Compare
|
what will |
e238443 to
d4bb501
Compare
|
also i wouldn't recommend the It is also nice because you can lazily copy the trie so its memory efficient |
|
put - store a dag node (just this) |
|
so if I have a vertex |
|
So far, with what is written (as in: please feel free to improve the API even if it has to be redone from scratch, just make sure it still works within the constraints/needs we have) |
|
@diasdavid ok i see, i keep coming at this from the point of view that the graph operation are methods on the vertices. Would the |
|
@wanderer yeah, the idea o a
We can expand the DAG API to have those features, yes. I believe @nicola has some ideas here |
90c3df5 to
d7b4105
Compare
|
We also do this kind of patching when building our merkle-btree which is the core, network visible, data structure in Peergos. |
150cf56 to
44af576
Compare
|
@diasdavid so i was digging around js-cid and when you do something like |
|
I'm going to break this PR into 3 PR
|
Uh oh!
There was an error while loading. Please reload this page.