fabric-loader
fabric-loader copied to clipboard
Stop running mod classes through mixin to improve classloading speed.
Id suggest possibly adding an opt-out option to allow mods such as the lang loaders to skip mixin's transformers, should in theory save a bit of speed.
Right now mixin will be transforming every mod class (including the language adapters). Needs testing to make sure its actaully worth it.
If I'm reading this right, the mod that wants to mix into another mod needs to opt-in.
How would we specify that? Do we just stick a
"iWantToMixinIntoTheseMods": ["mod1", "mod2", "mod3"]
in the fabric.mod.json
?
It would have to be an option to allow any mod to mixin its self (Should it pass through mixin or not). It would still get transformed by loader's internal transformers.
@modmuss50 Aren't mixins class-specific? If the classloader is just looking up relevant mixins in a map, I fail to understand why classloading speed is slow.
I dont believe this is a major bottleneck in classloading speed. I should have benchmarked this before creating the issue.