<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moriyoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/moriyoshi/</author_url>
  <blog_title>moriyoshiの日記</blog_title>
  <blog_url>https://moriyoshi.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>benchmark</anon>
  </categories>
  <description>注意: FF3.1b2の結果が不正確です。取り直したのはこちら。ちょっとした事情により、ある文字列のn回繰り返しを作る関数 (PHPでいうところのarray_repeat(), Perlで言うところの「&quot;...&quot; x n」、RubyやPythonで言うところの「&quot;...&quot; * n」) を高速に実装しなければならない状況に遭遇したのでベンチマークをとってみたところ、その結果がとても新鮮で驚いたので、これを共有しつつもダメ出ししてもらえないかなーと思って晒してみることに。 あらまし JavaScriptの文字列型 (およびStringオブジェクト) はJavaのようにイミュータブルなので、こういう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoriyoshi.hatenablog.com%2Fentry%2F20090125%2F1232916998&quot; title=&quot;同じ文字列のn回繰り返しを作る最速の方法を探求してみた - moriyoshiの日記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/m/moriyoshi/20090126/20090126060118.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-01-25 05:56:38</published>
  <title>同じ文字列のn回繰り返しを作る最速の方法を探求してみた</title>
  <type>rich</type>
  <url>https://moriyoshi.hatenablog.com/entry/20090125/1232916998</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
