Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Conversation

@fredrikhr
Copy link
Contributor

Minor PERF update: Since the call site chain is an ISet, the Add method return value makes the call to the Contains method redundant.

Effectively this means, that the call site chain is only searched once, instead of twice.

The performance benefit from this is probably very small. I stumbled over it accidentally while debugging the default ServiceProvider. But it can't hurt to try to optimize things.

@dnfclas
Copy link

dnfclas commented Feb 11, 2017

Hi @couven92, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

Copy link
Member

@davidfowl davidfowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidfowl davidfowl merged commit c6bfaa9 into aspnet:dev Feb 11, 2017
@fredrikhr fredrikhr deleted the callSiteChain branch February 22, 2017 00:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants