<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsntsumi</author_name>
  <author_url>https://blog.hatena.ne.jp/tsntsumi/</author_url>
  <blog_title>tsntsumi’s NOOTO</blog_title>
  <blog_url>https://tsntsumi.hatenadiary.org/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>iOS</anon>
    <anon>Mac</anon>
  </categories>
  <description>Apple のプログラミング言語 Swift のグローバル変数が遅いという噂があったので、いろいろ試してみた。 どうも、グローバル変数へのアクセスが遅いのではなくて、-- 演算子が遅いみたい。 アセンブラソースを -S オプションで出力させてみると、counter-- と counter -= 1 とでは明らかに出力されるコードが違っていた。counter -= 1は素直に decq とかで減算しているのに、counter-- だと不思議なことにサブルーチンを生成して何やら計算させているみたい。 謎である。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsntsumi.hatenadiary.org%2Fentry%2F20140615%2FGlobalVariableInSwift&quot; title=&quot;Swift のグローバル変数が遅い？ - tsntsumi’s NOOTO&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-06-15 00:00:00</published>
  <title>Swift のグローバル変数が遅い？</title>
  <type>rich</type>
  <url>https://tsntsumi.hatenadiary.org/entry/20140615/GlobalVariableInSwift</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
