Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid n^2 complexity during decoding (#12)
`push` using `Array.concat` creates a new copy of the array for each inserted element and leads to n^2 complexity when decoding arrays. For pprof with large numbers of samples, this quickly leads to very long decoding (>1 min) compared to ~1s with this change.
- Loading branch information