mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
Allow bulk reading for what again should be a substantial reduction in CPU cycles, mostly due to the previous commit which didn't actually reduce CPU because of this not being present.
This commit is contained in:
parent
0985794eab
commit
ed667e2b72
@ -63,5 +63,13 @@ public class PacketInputStream implements AutoCloseable
|
||||
out.write(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(byte[] b, int off, int len) throws IOException
|
||||
{
|
||||
int ret = wrapped.read(b, off, len);
|
||||
out.write(b, off, ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user