[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory updated HTTPCLIENT-2044:
----------------------------------------
    Description: 
In a lot of places we create instances of AuthSchemeFactory implementations 
like BasicSchemeFactory.

All of these instances are the same and immutable.

We can simplify the code and put a touch less pressure on the GC by creating 
singletons for these classes and then reusing them.

> Add and reuse singleton instances for immutable factory objects. 
> -----------------------------------------------------------------
>
>                 Key: HTTPCLIENT-2044
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2044
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>            Reporter: Gary D. Gregory
>            Assignee: Gary D. Gregory
>            Priority: Major
>
> In a lot of places we create instances of AuthSchemeFactory implementations 
> like BasicSchemeFactory.
> All of these instances are the same and immutable.
> We can simplify the code and put a touch less pressure on the GC by creating 
> singletons for these classes and then reusing them.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to