[
https://issues.apache.org/jira/browse/HTTPCLIENT-2044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006220#comment-17006220
]
ASF subversion and git services commented on HTTPCLIENT-2044:
-------------------------------------------------------------
Commit 3fd383f8702146b193bf021a55c4666760ae1079 in httpcomponents-client's
branch refs/heads/master from Gary Gregory
[ https://gitbox.apache.org/repos/asf?p=httpcomponents-client.git;h=3fd383f ]
[HTTPCLIENT-2044] Don't create stateless/immutable factory objects
Decide later if some of these classes should have a private default
constructor.
This closes #195
> 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
> Fix For: 5.0 Beta7
>
>
> 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]