users@grizzly.java.net

Re: ProtocolParser Advice

From: John ROM <snake-john_at_gmx.de>
Date: Tue, 20 May 2008 13:35:36 +0200

Hello,
ok attached is the hopefully improved version which tries to avoid
copying....

John


> Hello John,

>your implementation looks very good!
>One suggestion I can have is to not save temporary packet data inside >IncomingMessage... This way what you do all the time - is copying bytes >from one array to another... this operation is enough expensive.
>I always suggest to avoid copying if it's possible.
>Please take a look at this thread [1]. Ken and myself worked on improving >original custom Parser implementation, which copied a lot and came to >better (IMHO) solution, which avoids copying.
>If you will have any question on that - you're welcome :)

>Thanks.

>WBR,
>Alexey.

[1] http://www.nabble.com/ProtocolParser-implementation-II-tt17152654.html

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger