pardeike / Harmony

A library for patching, replacing and decorating .NET and Mono methods during runtime
https://www.patreon.com/pardeike
MIT License
5.15k stars 485 forks source link

Harmony.Patch() is a bit slow. #609

Closed SavingPot closed 4 months ago

SavingPot commented 4 months ago

I'm using Harmony to launch my game happily, but I find Harmony.Patch(MethodInfo, HarmonyMethod) a bit slow, I tried to use multi-thread, but static method patching did not ran correctly. Do I have any other solution to accelerate patch speed?

pardeike commented 4 months ago

It is as fast as you can get it.

SavingPot commented 4 months ago

OK. Thank you. Also, thanks for your giving, your project really really helps me a lot, I was always always always finding a method to add mod system to my game, after years I finally find this. Thank you! thank you!