Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the hash function used in the
InstMethodHashTable
(#95285)
Instead of using the TypeDef token of the MethodTable, use the TypeHandle pointer instead. This is both faster to compute, and is more unique, as the TypeDef token could be shared across multiple types in different assemblies, and if the type is generic itself, it could be shared across multiple different instantiations of the type. Improves the benchmark mentioned in isseu #94936 such that the cost is about 24 seconds, and the time in spent is spent almost entirely in the JIT, as should be expected. Fixes #94936 Co-authored-by: David Wrighton <[email protected]>
- Loading branch information