You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the SpatialMap and MultiSpatialMap implement Items and Positions using yield return. Instead, they could just return the Keys and Items fields of the underlying dictionaries. These enumerators are likely to be more efficient.
We could also provide overloads that return the actual type instead of IEnumerable so that we could take advantage of those optimizations when the specific type is known.
The text was updated successfully, but these errors were encountered:
Currently the
SpatialMap
andMultiSpatialMap
implementItems
andPositions
usingyield return
. Instead, they could just return theKeys
andItems
fields of the underlying dictionaries. These enumerators are likely to be more efficient.We could also provide overloads that return the actual type instead of
IEnumerable
so that we could take advantage of those optimizations when the specific type is known.The text was updated successfully, but these errors were encountered: