netty5/buffer/src/main/java/io/netty/buffer
Norman Maurer 1988cd041d Reduce Object allocations in CompositeByteBuf.
Motivation:

We used subList in CompositeByteBuf to remove ranges of elements from the internal storage. Beside this we also used an foreach loop in a few cases which will crate an Iterator.

Modifications:

- Use our own sub-class of ArrayList which exposes removeRange(...). This allows to remove a range of elements without an extra allocation.
- Use an old style for loop to iterate over the elements to reduce object allocations.

Result:

Less allocations.
2017-12-12 09:08:58 +01:00
..
AbstractByteBuf.java AbstractByteBuf readSlice bound check bug 2017-11-18 09:03:42 +01:00
AbstractByteBufAllocator.java Motivation: Resource Leak Detector (RLD) tries to helpfully indicate where an object was last accessed and report the accesses in the case the object was not cleaned up. It handles lightly used objects well, but drops all but the last few accesses. 2017-10-19 12:21:21 -07:00
AbstractDerivedByteBuf.java Consistency between pooled/unpooled derived buffers 2016-11-21 11:38:10 -08:00
AbstractPooledDerivedByteBuf.java Fix false-positives when using ResourceLeakDetector. 2016-12-04 09:01:39 +01:00
AbstractReferenceCountedByteBuf.java Optimistically update ref counts 2017-10-04 08:42:33 +02:00
AbstractUnpooledSlicedByteBuf.java Add tests to ensure an IllegalReferenceCountException is thrown if set/writeCharSequence is called on a released buffer 2017-07-21 07:39:32 +02:00
AbstractUnsafeSwappedByteBuf.java AbstractByteBuf.ensureWritable(...) should check if buffer was released 2017-07-19 07:34:08 +02:00
AdvancedLeakAwareByteBuf.java Motivation: Resource Leak Detector (RLD) tries to helpfully indicate where an object was last accessed and report the accesses in the case the object was not cleaned up. It handles lightly used objects well, but drops all but the last few accesses. 2017-10-19 12:21:21 -07:00
AdvancedLeakAwareCompositeByteBuf.java Record release when enable detailed leak detection 2017-07-18 09:28:56 +02:00
ByteBuf.java Support the little endian floats and doubles by ByteBuf 2017-08-15 06:24:28 +02:00
ByteBufAllocator.java MessageToByteEncoder always starts with ByteBuf that use initalCapacity == 0 2014-06-24 13:55:21 +09:00
ByteBufAllocatorMetric.java Expose ByteBufAllocator metric in a more general way 2017-03-08 20:07:58 +01:00
ByteBufAllocatorMetricProvider.java Expose ByteBufAllocator metric in a more general way 2017-03-08 20:07:58 +01:00
ByteBufHolder.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
ByteBufInputStream.java Fix javadoc issues 2017-02-22 07:31:07 +01:00
ByteBufOutputStream.java Minor improvements in ByteBufOutputStream 2017-10-21 14:44:13 +02:00
ByteBufProcessor.java Add @Deprecated when the javadoc says its deprecated 2016-05-01 20:30:13 +02:00
ByteBufUtil.java Fixes a javadoc for ByteBufUtil#copy method 2017-10-21 14:51:20 +02:00
CompositeByteBuf.java Reduce Object allocations in CompositeByteBuf. 2017-12-12 09:08:58 +01:00
DefaultByteBufHolder.java fix the typos 2017-04-20 04:56:09 +02:00
DuplicatedByteBuf.java retainSlice() unwrap ByteBuf 2016-07-29 11:16:44 -07:00
EmptyByteBuf.java EmptyByteBuf allows writing ByteBufs with 0 readable bytes 2017-03-21 22:00:54 -07:00
FixedCompositeByteBuf.java Fix typo in comment. 2017-10-02 08:16:22 +02:00
HeapByteBufUtil.java Add first-class Little Endian support to ByteBuf and descendants 2015-11-26 20:30:24 +01:00
package-info.java Synchronized between 4.1 and master 2014-04-25 00:38:02 +09:00
PoolArena.java fix the typos 2017-04-20 04:56:09 +02:00
PoolArenaMetric.java Allow to retrieve the number of active bytes per PoolArena. 2016-04-09 18:54:05 +02:00
PoolChunk.java Metrics exposed by PooledByteBufAllocator needs to be correctly synchronized 2017-03-01 06:26:08 +01:00
PoolChunkList.java Metrics exposed by PooledByteBufAllocator needs to be correctly synchronized 2017-03-01 06:26:08 +01:00
PoolChunkListMetric.java fix the typos 2017-04-20 04:56:09 +02:00
PoolChunkMetric.java Expose metrics for PooledByteBufAllocator 2015-05-20 21:06:17 +02:00
PooledByteBuf.java Ensure PooledByteBuf.initUnpooled(...) correctly set the allocator 2017-02-23 19:53:17 +01:00
PooledByteBufAllocator.java Dont use ThreadDeathWatcher to cleanup PoolThreadCache if FastThreadLocalThread with wrapped Runnable is used 2017-11-28 13:43:28 +01:00
PooledByteBufAllocatorMetric.java Expose ByteBufAllocator metric in a more general way 2017-03-08 20:07:58 +01:00
PooledDirectByteBuf.java Correctly throw IndexOutOfBoundsException when dst.remaining() is too big. 2016-10-12 14:41:56 +02:00
PooledDuplicatedByteBuf.java Consistency between pooled/unpooled derived buffers 2016-11-21 11:38:10 -08:00
PooledHeapByteBuf.java fix the typos 2017-04-20 04:56:09 +02:00
PooledSlicedByteBuf.java Consistency between pooled/unpooled derived buffers 2016-11-21 11:38:10 -08:00
PooledUnsafeDirectByteBuf.java AbstractByteBuf.ensureWritable(...) should check if buffer was released 2017-07-19 07:34:08 +02:00
PooledUnsafeHeapByteBuf.java AbstractByteBuf.ensureWritable(...) should check if buffer was released 2017-07-19 07:34:08 +02:00
PoolSubpage.java Metrics exposed by PooledByteBufAllocator needs to be correctly synchronized 2017-03-01 06:26:08 +01:00
PoolSubpageMetric.java Expose metrics for PooledByteBufAllocator 2015-05-20 21:06:17 +02:00
PoolThreadCache.java Dont use ThreadDeathWatcher to cleanup PoolThreadCache if FastThreadLocalThread with wrapped Runnable is used 2017-11-28 13:43:28 +01:00
ReadOnlyByteBuf.java ByteBufs which are not resizable should not throw in ensureWritable(int,boolean) 2017-07-22 08:44:48 -07:00
ReadOnlyByteBufferBuf.java Use the ByteBufAllocator when copy a ReadOnlyByteBufferBuf and so also be able to release it without the GC when the Cleaner is present. 2017-08-16 07:33:10 +02:00
ReadOnlyUnsafeDirectByteBuf.java Correctly handle byte shifting if system does not support unaligned access. 2015-10-20 17:32:13 +02:00
SimpleLeakAwareByteBuf.java Record release when enable detailed leak detection 2017-07-18 09:28:56 +02:00
SimpleLeakAwareCompositeByteBuf.java Record release when enable detailed leak detection 2017-07-18 09:28:56 +02:00
SlicedByteBuf.java retainSlice() unwrap ByteBuf 2016-07-29 11:16:44 -07:00
SwappedByteBuf.java SwappedByteBuf.unwrap() should return wrapped buffer. 2016-12-01 21:22:30 +01:00
Unpooled.java fix the typos 2017-04-20 04:56:09 +02:00
UnpooledByteBufAllocator.java Allow to construct UnpooledByteBufAllocator that explictly always use sun.misc.Cleaner 2017-08-31 12:57:09 +02:00
UnpooledDirectByteBuf.java Make UnpooledDirectByteBuf, UnpooledHeapByteBuf and UnpooledUnsafeDirectByteBuf constructors public. 2017-09-18 21:42:46 -07:00
UnpooledDuplicatedByteBuf.java retained[Slice|Duplicate] buffer reference count bug 2016-11-17 09:35:39 -08:00
UnpooledHeapByteBuf.java Make UnpooledDirectByteBuf, UnpooledHeapByteBuf and UnpooledUnsafeDirectByteBuf constructors public. 2017-09-18 21:42:46 -07:00
UnpooledSlicedByteBuf.java retained[Slice|Duplicate] buffer reference count bug 2016-11-17 09:35:39 -08:00
UnpooledUnsafeDirectByteBuf.java Make UnpooledDirectByteBuf, UnpooledHeapByteBuf and UnpooledUnsafeDirectByteBuf constructors public. 2017-09-18 21:42:46 -07:00
UnpooledUnsafeHeapByteBuf.java AbstractByteBuf.ensureWritable(...) should check if buffer was released 2017-07-19 07:34:08 +02:00
UnpooledUnsafeNoCleanerDirectByteBuf.java Also use realloc when shrink the buffer. 2017-07-06 20:03:15 +02:00
UnreleasableByteBuf.java Retained[Duplicate|Slice] operations should not increase the reference count for UnreleasableByteBuf 2017-03-31 17:45:29 -07:00
UnsafeByteBufUtil.java AbstractByteBuf.ensureWritable(...) should check if buffer was released 2017-07-19 07:34:08 +02:00
UnsafeDirectSwappedByteBuf.java Add *UnsafeHeapByteBuf for improve performance on systems with sun.misc.Unsafe 2015-10-21 09:04:13 +02:00
UnsafeHeapSwappedByteBuf.java Add *UnsafeHeapByteBuf for improve performance on systems with sun.misc.Unsafe 2015-10-21 09:04:13 +02:00
WrappedByteBuf.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
WrappedCompositeByteBuf.java Add CompositeByteBuf.addComponent(boolean ...) method to simplify usage 2016-05-21 19:52:16 +02:00
WrappedUnpooledUnsafeDirectByteBuf.java [#5645] Allow to create ByteBuf from existing memory address. 2016-08-16 14:16:15 +02:00