some proposal for perfomance opt (small patch)
mf-RDP opened this issue · comments
Hi Vermorel,
please see/use attached patch, if it's desired. It's just a performance improvement as I was profiling around a bit and I noticed,
ReadInstructions will allocate/GC free an enormous amount of GC objects, as the Delegate (Func) uses a boxing for itself each time as it seems.
Unfortunately, I made ByteBuffer and MethodBodyReader public. I know that's not fine.
Maybe you would find a nicer solution, I currently don't have much time :)
Many Thanks