Use ByteVectorChunk?
See original GitHub issueByteVectorChunk
is a type of Chunk[Byte]
which is better optimized for avoiding copies. Based on our experience with byte copying in scalaz-stream, I have a feeling this will be a big win for us.
But it only exists in fs2-1.0-SNAPSHOT. We should think about how we want to cut over, or whether we want to kindly ask for an fs2-0.10 so we can start building on that.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
ByteVector - scodec
An immutable vector of bytes, backed by a balanced binary tree of chunks. ... Use copy to copy all underlying bytes to a...
Read more >ByteVectorChunk - javadoc.io
Converts this chunk to a Chunk.Floats , allowing access to the underlying array of elements. If this chunk is already backed by an...
Read more >scodec-bits/ByteVector.scala at main - GitHub
An immutable vector of bytes, backed by a balanced binary tree of chunks. ... Note: if an `n`-byte vector is required, use the...
Read more >scheme-bytestructures: Guile library spotlight | Vijay Marupudi
In this post, we will take a quick look at scheme-bytestructures , a library for reading and writing structured binary data in Guile...
Read more >scalaz-stream: how to chunk with concatenation?
I think you could simplify this a bit using take , last and scanMonoid def byteChunk(n: Int): Process1[ByteVector, ByteVector] ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a crude benchmark for concatenating some chunks and rendering it to an array for writing.
Yes, it will.