Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Oct 18, 2017

  • Disable code to handle multiple appdomains
  • Use more efficient object array accessor

- Disable code to handle multiple appdomains
- Use more efficient object array accessor
@jkotas
Copy link
Member Author

jkotas commented Oct 18, 2017

The following called in a loop is ~17% faster:

[ThreadStatic]
static object o;

[MethodImpl(MethodImplOptions.NoInlining)]
static object foo() { return o; }

@stephentoub
Copy link
Member

The following called in a loop is ~17% faster:

That's on top of the ~20% improvement from your previous PR? That's great!

@jkotas jkotas requested a review from janvorli October 18, 2017 05:41
@janvorli janvorli merged commit 6af41ed into dotnet:master Oct 18, 2017
@jkotas jkotas deleted the thread-statics branch October 18, 2017 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants