Exploring the .NET CoreFX (2014-2015)

本文探讨了.NET Core开源项目中的多个性能优化技巧及最佳实践,包括纯方法注解、线程局部变量缓存、调试友好方法编写、索引器优化等。此外还介绍了Immutable Collections的内部实现细节。

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.

  1. Annotate Pure Methods With PureAttribute

  2. Cache ThreadLocal Variables in Locals

  3. Making Methods Debugger-Friendly

  4. The Requires Convenience Class

  5. Keep Indexers Trivial to Allow JIT Optimization

  6. Use IEquatable for Higher Performance Equals()

  7. Reference Versus Structural Equality

  8. NullReferenceException Performance Tricks

  9. Immutable Collections and the Builder Pattern

  10. Performance Tuning Enumeration

  11. Code Contracts

  12. Aggressive Inlining

  13. ImmutableList is an AVL Tree

  14. Inside Immutable Collections

  15. Using Non-Generic Factory Classes to Enable Type Inference

  16. Platform-Specific Builds Using Compile-Time Polymorphism

  17. Videotaped API Review


转载于:https://my.oschina.net/ITELITE/blog/519562

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值