<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cockscomb</author_name>
  <author_url>https://blog.hatena.ne.jp/cockscomb/</author_url>
  <blog_title>cockscomblog?</blog_title>
  <blog_url>https://cockscomb.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>Development</anon>
  </categories>
  <description>趣味のウェブブラウジングをしていると、Swift の ?? (nil coalescing operator) がコンパイルを遅くするのではないか、といった話題*1を見かけました。この演算子は、左辺の Optional&lt;Wrapped&gt; 型の値が Optional.none である場合に右辺の値を返すというもので、直感的にはこれがコンパイル時間を悪化させるとは思えません。経験から言えば、このようなケースでは大抵やや複雑な型推論が発生しており、それがコンパイル時間に支配的な影響を与えています。そうであるなら、人間が少し工夫して型のコンテキストを与えてやることで、計算機はずっとよいパフォーマンスを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcockscomb.hatenablog.com%2Fentry%2Fdoes-the-nil-coalescing-operator-slow-down-swift-compiler&quot; title=&quot;Swift の Nil Coalescing Operator でコンパイルは遅くなるか - cockscomblog?&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>2016-07-06 12:30:47</published>
  <title>Swift の Nil Coalescing Operator でコンパイルは遅くなるか</title>
  <type>rich</type>
  <url>https://cockscomb.hatenablog.com/entry/does-the-nil-coalescing-operator-slow-down-swift-compiler</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
