Hi,

I've two questions regarding the CumulativeProtocolDecoder:

1) every time the buffer goes empty it will be removed and for the next call new created. Especially for direct buffers this is a major performance bottleneck. Isn't it? But when I'm keeping it (overriding removeSessionBuffer), how can I reduce it's size instead?

2) the decode method first copies all data into the session buffer, before it starts to decode the message in doDecode. Here is a lot of time overhead for the copy process itself. Wouldn't it be better to try if the incoming data can be decoded directly without the copy process?

WDYT

Regards
Michael

Reply via email to