[ 
https://issues.apache.org/jira/browse/DIRMINA-500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124813#comment-14124813
 ] 

Emmanuel Lecharny commented on DIRMINA-500:
-------------------------------------------

Postponed to 3.0.

Not even sure it's a good idea : the cost of managing a cache, with the added 
synchronization it brings, might well be more costly than encoding the message 
everytime. Plus it might be handled by the encoder implementer.

I would think it's a useless premature optimization...

> Cache for encoded messages.
> ---------------------------
>
>                 Key: DIRMINA-500
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-500
>             Project: MINA
>          Issue Type: New Feature
>          Components: Filter
>            Reporter: Trustin Lee
>            Priority: Minor
>             Fix For: 3.0.0-M3
>
>
> There's unnecessary overhead of encoding when a user sends the same message 
> to multiple sessions.  We could implement a caching filter so it can reuse 
> the encoded IoBuffer instead of encoding every time.
> I'm not sure it should be implemented as a separate filter or should be part 
> of ProtocolCodecFilter yet though.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to