created Array type that has a good time complexity for both insert and retrieval of objects

This commit is contained in:
Kevin Jahns
2015-07-12 03:45:12 +02:00
parent 8cc374cabb
commit d50d34dc12
8 changed files with 290 additions and 185 deletions

View File

@@ -14,13 +14,12 @@ function copyObject (o) {
}
type StateVector = Array<State>;
type OperationSet = Object; // os[Id] = op
type StateSet = Object;
Y.Memory = (function(){ //eslint-disable-line no-unused-vars
class Transaction extends AbstractTransaction { //eslint-disable-line
ss: StateSet;
os: OperationSet;
os: RBTree;
store: OperationStore;
constructor (store : OperationStore) {