Zero Copy
Clement Mathieu
clement.mathieu at activeeon.com
Wed Apr 28 04:16:58 EDT 2010
On Wed, 28 Apr 2010 16:10:00 +0900
"Trustin Lee (이희승)" <trustin at gmail.com> wrote:
> I don't think reducing the number of memory copy operations will boost
> the throughput that much. Maybe you need to figure out what exactly
> is causing the slowdown before optimizing memory bandwidth?
I'm currently using netty to rewrite the network stack of our product.
We must be able to handle both small and big frames (from a few KBs
to several MBs).
Comparing the netty implementation to the RMI one, I noticed that netty
was slower than RMI (1 client, 1 server). A quick profiling session
using yourkit told me that array copies are an hotspot. Especially,
the copy performed by the frame decoder cost me a lot (garbage
collection). I have planned to write my own zero copy frame decoder to
see how it performs.
regards.
Clément MATHIEU.
More information about the netty-users
mailing list