case classDataBlock(data: Array[Byte]) extends Product with Serializable
A low-overhead abstraction over a byte array. This offers much of the same
functionally offered by Akka's ByteString, but without any additional
overhead. While this makes DataBlock a bit less powerful and flexible, it
also makes it considerably faster.
TODO: This is possibly a contender for using in all places where Array[Byte]
is used, but thorough benchmarking is needed. It is also possible that the
performance of ByteString has improved in later versions of Akka, so that
should also be tested before expanding on this any more.
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
A low-overhead abstraction over a byte array. This offers much of the same functionally offered by Akka's ByteString, but without any additional overhead. While this makes DataBlock a bit less powerful and flexible, it also makes it considerably faster.
TODO: This is possibly a contender for using in all places where Array[Byte] is used, but thorough benchmarking is needed. It is also possible that the performance of ByteString has improved in later versions of Akka, so that should also be tested before expanding on this any more.