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

Piotr Karwasz commented on LOG4J2-1650:
---------------------------------------

In the latest snapshot we have the following uncompressed sizes:

{noformat}
3173211 org/apache/logging/log4j/core
713177  org/apache/logging/log4j/core/appender
507957  org/apache/logging/log4j/core/config
335249  org/apache/logging/log4j/core/tools
280622  org/apache/logging/log4j/core/tools/picocli
271181  org/apache/logging/log4j/core/pattern
266055  org/apache/logging/log4j/core/appender/rolling
240882  org/apache/logging/log4j/core/filter
202387  org/apache/logging/log4j/core/impl
190778  org/apache/logging/log4j/core/util
169243  org/apache/logging/log4j/core/layout
138269  org/apache/logging/log4j/core/net
136128  org/apache/logging/log4j/core/time
105241  org/apache/logging/log4j/core/appender/rolling/action
103026  org/apache/logging/log4j/core/config/builder{noformat}

So removing {{o.a.l.l.c.tools}} (unreachable from the rest of the code) and 
{{o.a.l.l.c.config.builder}} (useless to most users) should send us under 1300 
KiB.

> log4j2-core diet
> ----------------
>
>                 Key: LOG4J2-1650
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1650
>             Project: Log4j 2
>          Issue Type: Improvement
>            Reporter: Romain Manni-Bucau
>            Priority: Major
>
> Hello,
> log4j2 is ~1.3M. It is a lot to get started with logging and several parts 
> are not mandatory to start and rarely needed all together like jackson, db, 
> yaml (this one is not that big) etc...Also saw Generate class which is quite 
> big but not sure it is needed at runtime and the annotation processor logic 
> is never needed at runtime.
> Anyway, by comparison logback and log4j1 are ~500k so hopefully we could only 
> pay the same price to get started with log4j2.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to