c# - Compiled Expression Tree slow due to JIT_MethodAccessCheck -


we're using compiled expression trees generate code dynamically; information available @ runtime enables (in theory) write simpler, faster code. performance boost in many cases.

however, in cases performance hit. in such cases, visual studio profiler shows difference in performance due method (which doesn't show @ in statically compiled code)

jit_methodaccesscheck 

what method do? (google doesn't have it). can optimize away somehow?

jit_methodaccesscheck method performs security checks such securitytransparent, aptca , class access checks mentioned @xanatos.

class access checks include securitycritical, securitysafecritical, attached profiler bypass , linkdemand. more details can found @ coreclr jithelpers.cpp.

since coreclr compatible clr, can safely assume checks in same manner in both of them.


Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -