netty/netty — pull request #376 by fredericBregier (2012-06-02 18:28:54+00:00)
Title: Improve Performance by calling very much less sao.setReadPosition(x)

When I made some benchmarks, I saw that sao.setReadPosition(x) might be called very very often (toooo often). So I decided to propose this patch that dramatically limits a lot the calls to this useful method.

This fix is for version 3.5 (and could be backported of course to 4.0)