mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +01:00
Added todo to optimize buffer allocation
This commit is contained in:
parent
4060f8d290
commit
9f45cf11a3
@ -152,6 +152,7 @@ public final class PacketUtils {
|
|||||||
private static ByteBuf createFramedPacket(@NotNull ServerPacket serverPacket) {
|
private static ByteBuf createFramedPacket(@NotNull ServerPacket serverPacket) {
|
||||||
ByteBuf packetBuf = writePacket(serverPacket);
|
ByteBuf packetBuf = writePacket(serverPacket);
|
||||||
|
|
||||||
|
// TODO use pooled buffers instead of unpooled ones
|
||||||
if (MinecraftServer.getCompressionThreshold() > 0) {
|
if (MinecraftServer.getCompressionThreshold() > 0) {
|
||||||
|
|
||||||
ByteBuf compressedBuf = Unpooled.buffer();
|
ByteBuf compressedBuf = Unpooled.buffer();
|
||||||
|
Loading…
Reference in New Issue
Block a user