Skip to content

Cache request line in HttpRequestWrapper#31

Closed
hirthwork wants to merge 3 commits into
apache:trunkfrom
hirthwork:trunk
Closed

Cache request line in HttpRequestWrapper#31
hirthwork wants to merge 3 commits into
apache:trunkfrom
hirthwork:trunk

Conversation

@hirthwork
Copy link
Copy Markdown

For each request HttpAsyncClient calls HttpRequestWrapper.getRequestLine() 8 times during single request execution. For URIs containing non-ASCII characters this causes tons of allocations and completely ruins performance.
According to out tests RequestLine caching successfully addresses the issue with the cost of single long living object.

@hirthwork hirthwork closed this Jun 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant