Exploring the .NET CoreFX (2014-2015)
On November 12, Microsoft announced that it will be releasing the .NET core as open source. The .NET core includes the Core Foundational Libraries (CoreFX), the Common Language Runtime (CoreCLR), and many other tools and libraries. The source code is available at GitHub athttps://github.com/dotnet.
I have cloned the source code of CoreFX and I am reading through them. This blog post series is about interesting or notable things I’ve learned.
Annotate Pure Methods With PureAttribute
Cache ThreadLocal Variables in Locals
Making Methods Debugger-Friendly
The Requires Convenience Class
Keep Indexers Trivial to Allow JIT Optimization
Use IEquatable for Higher Performance Equals()
Reference Versus Structural Equality
NullReferenceException Performance Tricks
Immutable Collections and the Builder Pattern
Performance Tuning Enumeration
Code Contracts
Aggressive Inlining
ImmutableList is an AVL Tree
Inside Immutable Collections
Using Non-Generic Factory Classes to Enable Type Inference
Platform-Specific Builds Using Compile-Time Polymorphism
Videotaped API Review
Exploring the .NET CoreFX (2014-2015)
原文:http://my.oschina.net/ITELITE/blog/519562