forked from Qortal/qortal
Disable peer buffer dealloc for now to reduce GC pressure
This commit is contained in:
parent
31c4e3b1be
commit
4e60ec5192
@ -372,9 +372,11 @@ public class Peer {
|
|||||||
if (message == null && bytesRead == 0 && !wasByteBufferFull) {
|
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
|
// 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 byteBuffer is empty then we can deallocate it, to save memory, albeit costing GC
|
||||||
if (this.byteBuffer.remaining() == this.byteBuffer.capacity())
|
if (this.byteBuffer.remaining() == this.byteBuffer.capacity())
|
||||||
this.byteBuffer = null;
|
this.byteBuffer = null;
|
||||||
|
*/
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user