<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>JavaScript の Array.prototype.concat で大きな配列を扱ったときの処理時間を確認した。 (a) =&gt; a.reduce((acc, i) =&gt; acc.concat([i]), []);a が 10^5 個のとき手元で 28000ms かかった。(a) =&gt; { const l = a.length; const b = new Array(l); for (let i = 0; i &lt; l; i++) { b[i] = a[i]; } return b;}これなら 2ms 。— bouzuya (@bouzuya) 2019年3月27日 AtCoder の 2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2019%2F03%2F27%2F225342&quot; title=&quot;Array.prototype.concat に注意する - bouzuya.hatenablog.com&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>2019-03-27 22:53:42</published>
  <title>Array.prototype.concat に注意する</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2019/03/27/225342</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
