Performance issue: comparing to String.Format

后端 未结 6 622
攒了一身酷
攒了一身酷 2020-12-08 22:32

A while back a post by Jon Skeet planted the idea in my head of building a CompiledFormatter class, for using in a loop instead of String.Format().

6条回答
  •  暖寄归人
    2020-12-08 22:51

    Have you accounted for the time to do the JIT compile as well? After all, the framework will be ngen'd which could account for the differences?

提交回复
热议问题