konstructs / server

A voxel based game server.
http://www.konstructs.org
MIT License
49 stars 12 forks source link

Upgrade to latest scala and akka #152

Closed petterarvidsson closed 7 years ago

petterarvidsson commented 7 years ago

@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.

petterarvidsson commented 7 years ago

Requires this one: https://github.com/konstructs/server-api/pull/20