Skip to content

Commit

Permalink
Merge pull request #58 from alecgibson/linked-op-performance-boost
Browse files Browse the repository at this point in the history
Improve performance of `getLinkedOps`
  • Loading branch information
ericyhwang authored Aug 7, 2018
2 parents 5c442f7 + 66f6533 commit e92ba8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,10 @@ function getLinkedOps(ops, to, link) {
if (to == null || op.v < to) {
delete op._id;
delete op.o;
linkedOps.unshift(op);
linkedOps.push(op);
}
}
return linkedOps;
return linkedOps.reverse();
}

function getOpsQuery(id, from) {
Expand Down

0 comments on commit e92ba8b

Please sign in to comment.