Re: CumulativeProtocolDecoder records the previous position of Bytebuffer

2007-09-28 Thread immars
Hello Lee, Thank you very much for pointing out my immature consideration on performance issue. In fact, my situation is that the cpu load of the application server is constantly below 10%, and the network communication mainly involves large amount of small messages in the size of less than 512

CumulativeProtocolDecoder records the previous position of Bytebuffer

2007-09-28 Thread immars
Hello, I implemented CumulativeProtocolDecoder.doDecode() in my subclass of CumulativeProtocolDecoder. In my doDecode(), the most straight-forward way I could figure out of decoding data is reading fields(Integers, Bytes, Booleans, etc.) of my POJO step by step following the protocol, until the