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

Use a null check rather than foreach #1729

Merged
merged 1 commit into from
Sep 27, 2017
Merged

Use a null check rather than foreach #1729

merged 1 commit into from
Sep 27, 2017

Conversation

johnynek
Copy link
Collaborator

counters are often hit in a tight loop. We can sacrifice the compiler check on safety here for the big win we could get from inlining a static null check.

@ianoc ianoc self-requested a review September 27, 2017 01:58
@ianoc
Copy link
Collaborator

ianoc commented Sep 27, 2017

merge when green

@ianoc ianoc merged commit 19c8881 into develop Sep 27, 2017
@ianoc ianoc deleted the oscar/opt-counters branch September 27, 2017 03:52
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.

2 participants