Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running `getOps` to fetch a large number of operations is not very performant. Anecdotally, performing this operation on a local development machine with a document comprising of ~200,000 operations takes ~20s. The largest slow-down appears to come from the `getLinkedOps` method, and in particular the use of `Array.unshift`. This change makes a very simple change that `push`es to the array instead of `unshift`, and then `reverse`s it at the end. The anecdotal operation time using this modified function is now ~2s, which is an improvement of an order of magnitude.
- Loading branch information