netty/netty — pull request #2645 by blucas (2014-07-08 17:37:38+00:00)
Title: CompositeByteBuf.deallocate memory improvement

Motivation:

CompositeByteBuf.deallocate generates unnecessary GC pressure when using the 'foreach' loop, as a 'foreach' loop creates an iterator when looping. More info #2642

Modification:

Convert 'foreach' loop into regular 'for' loop.

Result:

Less GC pressure (and possibly more throughput) as the 'for' loop does not create an iterator