You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2019/01/19 10:22:00 UTC

[jira] [Commented] (HTTPCLIENT-1963) Making Log Object in MainClientExec Static

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

Oleg Kalnichevski commented on HTTPCLIENT-1963:
-----------------------------------------------

[~yuyangw] Are you sure about that? {{MainClientExec}} is instantiated _once_ in a lifetime of an {{HttpClient}} instance at construction time.

Oleg 

> Making Log Object in MainClientExec Static
> ------------------------------------------
>
>                 Key: HTTPCLIENT-1963
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1963
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>            Reporter: Yuyang Wang
>            Priority: Major
>
> In MainClientExec constructor, the Log object is retrieved from LogFactory. For clients which construct a lot of MainClientExec instances, it may improve the performance by making the log reference static.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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