[Performance] Avoid unnecessary predicate allocations in RecyclePool.TryGetElementCore
#15806
Labels
area/performance 📈
Categorizes an issue or PR as relevant to performance
difficulty/starter 🚀
Categorizes an issue for which the difficulty level is reachable by newcomers
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/enhancement
New feature or request
What would you like to be added
A simple loop instead of
FindIndex
will be more efficient.Alternatively, introduce a
FindIndex
extension method like:Why is this needed
No response
For which platform
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: