13
0
geforkt von Mirrors/Velocity
Velocity/proxy
Andrew Steinborn a6ddc137ee Reduce varint reading cost from max(1, 2n) to n+1 operations on ByteBuf
The previous code, in an attempt to avoid exceptions, checked in.isReadable() each iteration of the loop. This isn't very efficient since it's possible for us to know the maximum size of the varint to read: it's the minimum of either the largest size a varint can be (5 bytes) or the size of the remaining readable bytes in the buffer.
2020-08-21 01:05:04 -04:00
..
src Reduce varint reading cost from max(1, 2n) to n+1 operations on ByteBuf 2020-08-21 01:05:04 -04:00
build.gradle Switch to adventure-nbt and fix server switching on 1.16.2-pre3 2020-08-06 17:38:52 -04:00