Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Fields of Spatial Maps #133

Open
Chris3606 opened this issue Jul 21, 2024 · 0 comments
Open

Optimize Fields of Spatial Maps #133

Chris3606 opened this issue Jul 21, 2024 · 0 comments

Comments

@Chris3606
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant