Avoid intermediate allocations in MethodInfo/ConstructorInfo.Invoke (#50814)
* Avoid temporary array allocations in reflection * Add nullability annotations * Move some lazy property getters out of the hot path * More factoring out common fast paths * Comment cleanup - no functional changes * Moved some function blocks around for clarity - no functional changes * Pass span into native stack byref * Knock max stackalloced ctor parameters back to 4 * Move all CheckConsistency logic inline
Showing
想要评论请 注册 或 登录