<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ksss9</author_name>
  <author_url>https://blog.hatena.ne.jp/ksss9/</author_url>
  <blog_title>スペクトラム</blog_title>
  <blog_url>https://ksss9.hatenablog.com/</blog_url>
  <categories>
    <anon>日記</anon>
    <anon>Ruby</anon>
  </categories>
  <description>ruby/ruby(trunk)にパッチを投げた。 https://github.com/ruby/ruby/pull/537 以下を処理するのにものすごく時間がかかる。 n = 1000000 a = (0..n).to_a;nil while a.shift(2).length != 0 end nが10000とかなら気にならないレベルなんだけど、1000000となると数分かかる。 これをどんな長さでも瞬時に終わらせる修正だった。 これを投げた時、更にアイデアがあった。 「このaryはARY_SHARED_PであることはあってもARY_SHARED_OCCUPIEDになることはなくない？」…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fksss9.hatenablog.com%2Fentry%2F2014%2F02%2F22%2F213503&quot; title=&quot;RubyのArrayがSharedでOCCUPIED - スペクトラム&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-02-22 21:35:03</published>
  <title>RubyのArrayがSharedでOCCUPIED</title>
  <type>rich</type>
  <url>https://ksss9.hatenablog.com/entry/2014/02/22/213503</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
