hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Heald (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1509) Increase DefaultHttpResponseParser buffer size
Date Wed, 14 May 2014 21:55:24 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13998101#comment-13998101

Chris Heald commented on HTTPCLIENT-1509:

Hrm. No, I'm not sure. Looking at the code now, I'm not quite sure how I arrived at that conclusion
yesterday. Go ahead and close this one out. Sorry!

> Increase DefaultHttpResponseParser buffer size
> ----------------------------------------------
>                 Key: HTTPCLIENT-1509
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1509
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpConn
>    Affects Versions: 4.3.3
>            Reporter: Chris Heald
>            Priority: Minor
>              Labels: performance
> DefaultHttpResponseParser allocates a CharArrayBuffer(128), which ends up resulting in
a 128-byte InputStream read. Due to the typical size of an HTTP response's headers, this ends
up doing tens of stream reads per document read.
> Increasing the size of this buffer to something more traditional like 4096 substantially
improved the performance of HttpClient in my high-load reads.

This message was sent by Atlassian JIRA

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

View raw message