GitHub user cakofony opened a pull request:
https://github.com/apache/logging-log4j2/pull/137
PatternFormatter avoids identityToString until collisions detected
This implementation uses an IdentityHashMap backed Set to avoid
building a string and hashing it unnecessarily.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cakofony/logging-log4j2
pattern_formatter_dejavu
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/137.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #137
----
commit 046213021eaa26602ce09fa08d5b2bef7258341a
Author: Carter Kozak <[email protected]>
Date: 2017-12-06T20:49:06Z
PatternFormatter avoids identityToString until collisions detected
This implementation uses an IdentityHashMap backed Set to avoid
building a string and hashing it unnecessarily.
----
---