开发者

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

开发者 https://www.devze.com 2022-12-15 08:58 出处:网络
In the Apress book \"Illustrated C# 2008\", pg. 343 notes: \"One-dimensional arrays have specific instructions in the CIL that allow them

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 perf开发者_Go百科ormance optimizations are implemented?

0

精彩评论

暂无评论...
验证码 换一张
取 消