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

Replace LINQ with simple loop in hot path #337

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

FroggieFrog
Copy link
Collaborator

This PR replaces LINQ in the hot path QuadTree.GetItemsIntersecting(List<T> items, Rect bounds) with a simple loop to reduce allocations.
Also a typo in QuadTree.Quadrant(Rect extent) is fixed.

@FroggieFrog FroggieFrog added this to the Anno Designer 9.1 Release milestone Jun 11, 2021
@FroggieFrog FroggieFrog merged commit 25d93d9 into AnnoDesigner:master Jun 11, 2021
@FroggieFrog FroggieFrog deleted the no-linq branch June 11, 2021 08:53
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

Successfully merging this pull request may close these issues.

None yet

1 participant