<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>espresso3389</author_name>
  <author_url>https://blog.hatena.ne.jp/espresso3389/</author_url>
  <blog_title>espresso3389の日記</blog_title>
  <blog_url>https://espresso3389.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C# で配列を確保した後に、それを IEnumerable や IReadOnlyList で受けて処理をした場合にどの程度の速度差があるのかを計ってみた。.NET 4.6, x64環境での調査。100000000要素での結果は、 Array 87 ms. IEnumerable 624 ms. IReadOnlyList 568 ms.ということで、やっぱり生配列だとぶっちぎりで早い。速度が重要なら、 IEnumerableなどで受けても内部で配列にキャストしてから処理する特別ルーチンを入れたりすることは考えても良いのかも知れない。以下、利用したコード： using System; usin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fespresso3389.hatenablog.com%2Fentry%2F2015%2F11%2F09%2F212923&quot; title=&quot;配列とIEnumerable, IReadOnlyList での処理速度差 - espresso3389の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-09 21:29:23</published>
  <title>配列とIEnumerable, IReadOnlyList での処理速度差</title>
  <type>rich</type>
  <url>https://espresso3389.hatenablog.com/entry/2015/11/09/212923</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
