[
https://issues.apache.org/jira/browse/HTTPCORE-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801192#action_12801192
]
Oleg Kalnichevski commented on HTTPCORE-177:
--------------------------------------------
My idea was pretty trivial - copy data to the internal buffer only when reading
small chunks of data. When reading largish chunks the method should read to the
destination buffer directly bypassing the internal buffer.
One byte reads are not a problem. In fact, the internal buffer never gets
compacted. #fillBuffer() is called only when content of the buffer is
completely exhausted.
Oleg
> Optimize AbstractSessionInputBuffer#read(byte[], int, int)
> ----------------------------------------------------------
>
> Key: HTTPCORE-177
> URL: https://issues.apache.org/jira/browse/HTTPCORE-177
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Components: HttpCore
> Affects Versions: 4.0-beta3
> Reporter: Oleg Kalnichevski
> Fix For: 4.1-beta1
>
>
> At the moment AbstractSessionInputBuffer#read(byte[], int, int) always copies
> input to the internal data buffer prior to copying it to the destination
> buffer. The performance of this method may potentially be improved by
> eliminating intermediate data copy operation and reading input directly to
> the destination buffer, especially when dealing with large chunks.
> Oleg
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]