mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: ProtocolCodecFilter threading model
Date Wed, 07 Oct 2015 19:51:16 GMT
Le 07/10/15 21:40, Jon V. a écrit :
> It would use more memory and since there is already 2x IoProcessors for cpu
> cores there would be no speedup. In fact it would lead to more memory
> fragmentation/cache misses and require one thread for every session.

Beside that, it would be impossible to know where to start decoding as
the decoder has no idea about where a message starts and when a message
ends in a stream of bytes, unless it has fully decoded a message. Having
multiple threads decoding multiple stream of bytes will simply be bound
to fail, as Jon explained in his previous message.


Mime
View raw message