mojira.dev
MC-85592

Default log4j2.xml is suboptimal

The default log4j2.xml has a line like:

<Configuration status="WARN" packages="net.minecraft,com.mojang">
<Configuration status="WARN" packages="net.minecraft,com.mojang">

This is suboptimal as log4j will scan the entire list of these classes for handlers. Since the only handlers are in com.mojang.util, by changing the configuration to

<Configuration status="WARN" packages="com.mojang.util">
<Configuration status="WARN" packages="com.mojang.util">

application startup speed will improve by seconds.

Comments 3

Doing that will cause a Minecraft crash.

From IRC,
<Meeeh> I think that they might have logger in net.minecraft, but it is removed when obfuscating, like it may be some debug-only logger

So maybe this is an invalid/wontfix.

Except @unknown marked it as fixed. Have you checked in the recent snapshots to see if this is still the case?

md_5

Nathan Adams

Plausible

Minecraft 15w32c, Minecraft 1.8.9

Minecraft 15w34a

Retrieved