Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using TR in RemapInjectables (#19)
* Avoid using TR in RemapInjectables Since this transform only remaps a single class, we can use ASM's more lightweight ClassRemapper to avoid TR's costly remapping. This transform is present in essentially all Architectury dev env runtimes (if runtime transformation is enabled), so this optimisation has a major performance boost if there are no other active TinyRemapperTransformers. This is true for the default Fabric setup, but Forge setups additionally use TransformForgeEnvironment. For a simple Fabric setup, this led to class transformation being about two orders of magnitude faster on my machine in the Architectury API Fabric dev env (transformation time from x·10ms to x·100µs). * Add back isInjectInjectables check
- Loading branch information