perf(eventbus): remove inline allocations and expose binding snapshots
This commit is contained in:
@@ -11,8 +11,8 @@ namespace ShrinkEventBus.CodeGen
|
||||
{
|
||||
public override ILPostProcessor GetInstance() => this;
|
||||
|
||||
public override bool WillProcess(ICompiledAssembly compiledAssembly) =>
|
||||
UnityShrinkCodeGenAdapter.ReferencesAny(compiledAssembly, "ShrinkEventBus.Runtime");
|
||||
// ShrinkRegistryILPostProcessor owns the complete pass, including event bindings.
|
||||
public override bool WillProcess(ICompiledAssembly compiledAssembly) => false;
|
||||
|
||||
public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly) =>
|
||||
WillProcess(compiledAssembly)
|
||||
|
||||
Reference in New Issue
Block a user