Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark against purescript-dynamic-buffers #3

Open
jamesdbrock opened this issue Nov 11, 2020 · 0 comments
Open

Benchmark against purescript-dynamic-buffers #3

jamesdbrock opened this issue Nov 11, 2020 · 0 comments

Comments

@jamesdbrock
Copy link
Member

https://github.com/jamesdbrock/purescript-arraybuffer-builder/blob/cdb011b083d461465e6a00424f32bac801d340b3/src/Data/ArrayBuffer/Builder.purs#L421-L423

Here is a chance to benchmark against another style of builder.

This builder works by writing to a mutable buffer, so this might be much faster. If it runs out of space, then it allocates a new buffer which is double the size of the old one, and copies from old to new.

https://pursuit.purescript.org/packages/purescript-dynamic-buffers/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant