<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>DBとかに保存するために配列(数値が入ってる)をスカラーに圧縮したい。&quot;joinしてsplit&quot;するのと&quot;packしてunpack&quot;だと後者が絶対早いよなーとか思ったけど、どれくらい早いのか気になったので調べてみた。配列はランダムに作ったほうがいいのかな、、、と思いながらも手を抜いた。 require 'benchmark' require 'pp' a = [1, 3, 9, 21, 30, 51, 1000, 3000, 5000, 10000] n = 10000 Benchmark.bm do |x| x.report {n.times {a.join(', ')}} x.report…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20100303%2F1267591131&quot; title=&quot;pack&amp;amp;unpackの処理速度 - yasuhisa&amp;#39;s blog&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://ecx.images-amazon.com/images/I/51BI+oUtJCL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-03-03 13:38:51</published>
  <title>pack&amp;unpackの処理速度</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20100303/1267591131</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
