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

ASF GitHub Bot commented on ARTEMIS-1807:
-----------------------------------------

Github user franz1981 commented on the issue:

    https://github.com/apache/activemq-artemis/pull/2015
  
    @clebertsuconic @gaohoward AFAIK you've worked recently on Large messages: 
please share your thoughts and if you see other points where this improvement 
should be used.
    
    The optimal solution would be by using 
[DefaultFileRegion](https://netty.io/4.1/api/io/netty/channel/DefaultFileRegion.html)
 to zero-copy data through the wire, but it involves to change `Packet` in 
order to use a `FileRegion` body instead of `byte[]`: this solution I've 
proposed seems less invasive, while providing very good perf improvements.


> File-based Large Message encoding should use read-only mmap
> -----------------------------------------------------------
>
>                 Key: ARTEMIS-1807
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1807
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 2.5.0
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Major
>
> File-based LargeServerMessageImpl should use read-only memory mapping while 
> reading the file, in order to:
>  * reduce the number of copiesĀ 
>  * reduce the context switches



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

Reply via email to