You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2008/09/27 18:11:44 UTC
[jira] Created: (DIRMINA-624) Message handlers selection is not
efficient in the DemuxingIoHandler
Message handlers selection is not efficient in the DemuxingIoHandler
--------------------------------------------------------------------
Key: DIRMINA-624
URL: https://issues.apache.org/jira/browse/DIRMINA-624
Project: MINA
Issue Type: Improvement
Affects Versions: 2.0.0-M3
Reporter: Emmanuel Lecharny
The way we are selecting a message handler in the DemuxingIoHandler is far from being optimal. The problem is that we are registering a handler without checking its inheritence scheme, but we do so when receiving a message.
It would be much more efficient to do the inheritence discovering while registering a handler, avoiding such a discovery when receiving a message.
There is only one tricky issue we have to take care of : as we can associate a handler with one of it's inherited class or implemented interface, if there is another handler associated with those classes/interfaces added later, this should override the default association. So we must flag the automatically added handlers in order to be able to replace them if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRMINA-624) Message handlers selection is not
efficient in the DemuxingIoHandler
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRMINA-624:
--------------------------------------
Fix Version/s: 3.0.0-M1
Postponed to 3.0
> Message handlers selection is not efficient in the DemuxingIoHandler
> --------------------------------------------------------------------
>
> Key: DIRMINA-624
> URL: https://issues.apache.org/jira/browse/DIRMINA-624
> Project: MINA
> Issue Type: Improvement
> Affects Versions: 2.0.0-M3
> Reporter: Emmanuel Lecharny
> Fix For: 3.0.0-M1
>
>
> The way we are selecting a message handler in the DemuxingIoHandler is far from being optimal. The problem is that we are registering a handler without checking its inheritence scheme, but we do so when receiving a message.
> It would be much more efficient to do the inheritence discovering while registering a handler, avoiding such a discovery when receiving a message.
> There is only one tricky issue we have to take care of : as we can associate a handler with one of it's inherited class or implemented interface, if there is another handler associated with those classes/interfaces added later, this should override the default association. So we must flag the automatically added handlers in order to be able to replace them if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.