Fix an occasional small perf issue in `ThreadLocal` constructor/dispose (#59300)
- Replaced the linear search for a free ID with a pair of collections that operate in O(1) time for insertion and removal - See https://github.com/dotnet/runtime/issues/59145#issuecomment-922162343 for more information - Fixes https://github.com/dotnet/runtime/issues/59145
Showing
想要评论请 注册 或 登录