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

Jan Bednar commented on CAMEL-13527:
------------------------------------

I am working on this.

> Implement missing optimisation for DelimiterBasedFrameDecoder
> -------------------------------------------------------------
>
>                 Key: CAMEL-13527
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13527
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-netty4
>    Affects Versions: 2.24.0, 3.0.0-M2
>            Reporter: Jan Bednar
>            Priority: Minor
>
> See pretty nice analysis on SO 
> [https://stackoverflow.com/questions/56110408/memory-leak-in-camel-netty-tcp-client-when-consuming-lines-with-windows-line-bre]
> *io.netty.handler.codec.DelimiterBasedFrameDecoder* internally delegates 
> decoding to *io.netty.handler.codec.LineBasedFrameDecoder*. This delegation 
> is not working with Camel, because Netty internally checks for condition
> {code:java}
> this.getClass() != DelimiterBasedFrameDecoder.class // 
> io.netty.handler.codec.DelimiterBasedFrameDecoder line 174 - !isSubclass()
> {code}
> We can recreate similar optimisation inside 
> *org.apache.camel.component.netty4.codec.DelimiterBasedFrameDecoder* and get 
> (according to SO post) significant performance improvement.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to