mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Disable peer buffer dealloc for now to reduce GC pressure
This commit is contained in:
@@ -372,9 +372,11 @@ public class Peer {
|
||||
if (message == null && bytesRead == 0 && !wasByteBufferFull) {
|
||||
// No complete message in buffer, no more bytes to read from socket even though there was room to read bytes
|
||||
|
||||
/* DISABLED
|
||||
// If byteBuffer is empty then we can deallocate it, to save memory, albeit costing GC
|
||||
if (this.byteBuffer.remaining() == this.byteBuffer.capacity())
|
||||
this.byteBuffer = null;
|
||||
*/
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user