Chat-Wane / LSEQTree

A data structure for distributed arrays using the LSeq allocation strategy
http://chat-wane.github.io/LSEQTree
MIT License
56 stars 10 forks source link

Delay conversion fromNodetoId #5

Closed Chat-Wane closed 9 years ago

Chat-Wane commented 9 years ago

In lseqtree.js , inserting an element first gets the previous and next as nodes. Then the two nodes are converted to ID which is a more compact representation used in the older package lseqarray. It uses this representation to generate a new ID and send it.

We want to keep the possibility to parse and send ID. However, it would be nice to delay conversion at the latest point in the code. For instance, just before sending them.