netty5/buffer/src
Francesco Nigro c8c45cfa4c
O(1) buffer next capacity computation (#11641)
Motivation:

Enlarging buffers approaching 4 MiB size requires n iterations

Modification:

Use a single instruction to compute the next buffer capacity

Result:

Faster/Simpler calculateNewCapacity
2021-09-01 17:48:26 +02:00
..
main O(1) buffer next capacity computation (#11641) 2021-09-01 17:48:26 +02:00
test/java/io/netty/buffer Don't throw if null is given as ByteBuf when adding components. (#11613) 2021-08-26 08:20:17 +02:00