@nsg First commits migrates to new akka and scala version, second commit utilizes the ByteString class instead of Array[Byte]. Since a ByteString can contain several arrays of bytes, when e.g. sending the data to the the client (i.e. first 4 byte of size and then e.g. a chunk), this is represented as a 4 byte long array followed by the array with the chunk data. This means that the chunk data is now never copied when it is sent to the client, saving memory, and more importantly a bit of performance.
@nsg First commits migrates to new akka and scala version, second commit utilizes the ByteString class instead of Array[Byte]. Since a ByteString can contain several arrays of bytes, when e.g. sending the data to the the client (i.e. first 4 byte of size and then e.g. a chunk), this is represented as a 4 byte long array followed by the array with the chunk data. This means that the chunk data is now never copied when it is sent to the client, saving memory, and more importantly a bit of performance.