MinecraftForge / AccessTransformers

Antlr4 definition for MCP / Forge Access Transformers
GNU Lesser General Public License v2.1
14 stars 12 forks source link

Use new modlauncher method to allow faster rewriting of ATed classes #10

Closed ichttt closed 4 years ago

ichttt commented 4 years ago

This PR patches AccessTransformer to use the new processClass method of modlauncher, which improves startup performance by around 2.5-3 seconds (from 15.9 seconds to 13.0 seconds) when combined with the forge PR. This is done by telling modlauncher that is does not need to recompute all frames just because one transformer changed the class. The access transformer does not add or remove local variables and does not inject code, but alter existing code, which does not require maxs or frames of methods to be recomputed. Requires https://github.com/cpw/modlauncher/pull/41 See https://gist.github.com/ichttt/98da420deabd8e904ac53fece883df16 for the raw performance test numbers