You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Rémi Kowalski (Jira)" <se...@james.apache.org> on 2020/01/28 14:31:00 UTC

[jira] [Commented] (JAMES-3030) Improve Flux backed input stream read speed

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

Rémi Kowalski commented on JAMES-3030:
--------------------------------------

Link to the PR : https://github.com/linagora/james-project/pull/3047

> Improve Flux backed input stream read speed
> -------------------------------------------
>
>                 Key: JAMES-3030
>                 URL: https://issues.apache.org/jira/browse/JAMES-3030
>             Project: James Server
>          Issue Type: Improvement
>    Affects Versions: 3.5.0
>            Reporter: Rémi Kowalski
>            Priority: Major
>
> The read speed of a Flux backed input stream obtained using ReactorUtils.toInputStream is slow because in the underlying InputStream implementation only the byte by byte read methode is implemented.
>  
> The proposed solution is to also implement the inputStream read method  : 
> {color:#000080}public int {color}read({color:#000080}byte{color}[] b, {color:#000080}int {color}off, {color:#000080}int {color}len) {color:#000080}throws {color}IOException
>  
> which can read several bytes at the same time



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org