<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>proprogrammer</author_name>
  <author_url>https://blog.hatena.ne.jp/proprogrammer/</author_url>
  <blog_title>C#+WPFチューニング戦記</blog_title>
  <blog_url>https://proprogrammer.hatenadiary.jp/</blog_url>
  <categories>
    <anon>IL</anon>
    <anon>最適化</anon>
    <anon>C#</anon>
  </categories>
  <description>List&lt;T&gt;の話は具体的なILの話に続いていきます。 ILに変換された後にcallであるかcallvirtであるか、という違いは案外大きいようです。 callである場合、現時点の .NET Frameworkは比較的積極的な最適化を行ってくれます。一方callvirtになる場合の最適化は消極的です。 試しにすべてstruct（値型）でList&lt;T&gt;を実装してみました。 List&lt;T&gt;を実装するという事は大まかには struct StructList&lt;T&gt; : IList&lt;T&gt;というクラスを作成し、GetEnumeratorが返すものはstruct StructList&lt;T&gt;.Enumrato…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproprogrammer.hatenadiary.jp%2Fentry%2F2014%2F08%2F05%2F031121&quot; title=&quot;callとcallvirtの違いとstructとinterfaceの関係 - C#+WPFチューニング戦記&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>2014-08-05 03:11:21</published>
  <title>callとcallvirtの違いとstructとinterfaceの関係</title>
  <type>rich</type>
  <url>https://proprogrammer.hatenadiary.jp/entry/2014/08/05/031121</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
