How does C# 3.0 jagged array performance optimization vs. rectangular arrays work?

断了今生、忘了曾经 提交于 2019-12-10 04:36:08

问题


In the Apress book "Illustrated C# 2008", pg. 343 notes:

"One-dimensional arrays have specific instructions in the CIL that allow them to be optimized for performance. Rectangular arrays do not have these instructions...Because of this, it can sometimes be more efficient to use jagged arrays..."

Does anyone know how these performance optimizations are implemented?

来源:https://stackoverflow.com/questions/1986989/how-does-c-sharp-3-0-jagged-array-performance-optimization-vs-rectangular-array

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!