[
https://issues.apache.org/jira/browse/HTTPCORE-608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16955136#comment-16955136
]
Oleg Kalnichevski commented on HTTPCORE-608:
--------------------------------------------
[~desmondyeung] Damn. That one liner was, of course, wrong and has led to
unnecessary buffer expansion. Please try this fix [1]
Oleg
[1]
https://github.com/apache/httpcomponents-core/commit/8a2962d375359254c9fb806cacd1017bc333e0fe
> Performance Regression with SessionInputBufferImpl
> --------------------------------------------------
>
> Key: HTTPCORE-608
> URL: https://issues.apache.org/jira/browse/HTTPCORE-608
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Affects Versions: 5.0-beta9
> Reporter: Desmond Yeung
> Priority: Major
>
> I recently started testing client 5.0-beta6 and I'm seeing very noticeable
> performance regressions with 5.0-beta6 over 5.0-beta5. In my application, I
> normally maintain ~100MB/s down. 5.0-beta6 seems to be struggling to maintain
> 1MB/s.
> I tracked it down to this commit
> https://github.com/apache/httpcomponents-core/commit/fd2d0c2004e858d4f30aad5cf64f19045005811c
> I don't fully understand the change, but profiling shows that expandCapacity
> is always being triggered and copying/resizing the buffer.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]