Le jeudi 13 avril 2006 à 16:11 +0900, Trustin Lee a écrit :
> On 4/13/06, Julien Vermillard <[EMAIL PROTECTED]> wrote:
>         Hi,
>         
>         I had a discussion with Trustin about latency and I wrote a
>         little test
>         (based of reserver example). The values looks pretty low
>         (1ms). I wonder
>         if my test is correct.
> 
> It seems like you didn't set any thread model.  You need to set the
> thread model to ThreadModel.MANUAL so it run in a single thread.
> 
> And is there any reason you spawn a new thread?  You could just store
> the current nanotime as a session attribute and then calculate the
> latency when messageReceived is invoked later.  It will decrease
> latency much more. 
> 
> BTW 1 ms latency sounds very good.

Yep I wanted ot test with default thread model config. I'll try with
ThreadPool 


I use to spawn a thread because in some case calling session.write(); in
the IoHandler used to create deadlocks. I think it's fixed in MINA now,
but it's an old habbit :)

Well I think Java precision is too low for mesure the real latency.
For me it's look low enougth :)

Julien

Reply via email to