buffer-builder icon indicating copy to clipboard operation
buffer-builder copied to clipboard

Haskell library for efficiently building up buffers

Results 5 buffer-builder issues
Sort by recently updated
recently updated
newest added

Is it trivial to adapt `deriveJson` from `Aeson` to automatically derive `ToJson` instances? I looked into using buffer builder for a project but got stopped in tracks because I use...

The haskell-perf team has a list of benchmarks of different bytestring builders. `buffer-builder` should get added there: https://github.com/haskell-perf/strict-bytestring-builders

I can't imagine a situation where this matters yet, but in case it comes up someday: https://github.com/lpsmith/json-builder/commit/b33adc7c8a959cec918485900cc3c8360b23854d Also http://blog.melding-monads.com/2012/02/24/implementing-json-builder-or-how-the-commabuilder-got-its-spots/

On naive implementations of realloc(), the current growth implementation copies (lg N) times. If we chunked into a linked list, we'd have the option to produce a Lazy ByteString, avoiding...

- ghc-9.8.2 - base-4.19.1.0 - buffer-builder-0.2.4.8 - text-2.1.1 ``` buffer-builder > /tmp/nix-shell.6TvZya/stack-cb8b4477c445eb72/buffer-builder-0.2.4.8/src/Data/BufferBuilder.hs:354:9: error: [GHC-76037] buffer-builder > Not in scope: data constructor ‘ByteArray’ buffer-builder > Suggested fix: buffer-builder > Add ‘ByteArray’...