[
https://issues.apache.org/jira/browse/LOG4J2-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17515063#comment-17515063
]
Matt Sicker commented on LOG4J2-3459:
-------------------------------------
What kind of profiler and profiling would you recommend for checking startup
time? So far, the only thing I've figured out was class init logging to find
some stuff that was being unnecessarily initialized in the plugin system, but
now I'm finding it harder to figure out the rest.
> Reduce use of class static initialization blocks
> ------------------------------------------------
>
> Key: LOG4J2-3459
> URL: https://issues.apache.org/jira/browse/LOG4J2-3459
> Project: Log4j 2
> Issue Type: Improvement
> Components: API, Core
> Reporter: Matt Sicker
> Priority: Major
>
> There are numerous classes that use static initializer blocks to perform
> computation for caching some results. These should all generally be deferred
> until some other reference to the class such as instantiation of use of a
> singleton getter method.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)