<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t-tkzw</author_name>
  <author_url>https://blog.hatena.ne.jp/t-tkzw/</author_url>
  <blog_title>ぞえ の戯れ言</blog_title>
  <blog_url>https://t-tkzw.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>前回に引き続き、変数を含む3つの文字列を連結する場合はどの方法がよいのか調べてみます。結果の変数に格納する際に&quot;+=&quot;を使うのは明らかに遅いのでconcatを使うことにします。 テスト1: &quot;+&quot;による連結 str = 'def' for i in 1..100000 buf = 'abc' + str + 'ghi' end テスト2: &quot; str = 'def' for i in 1..100000 buf = 'abc' buf &lt;&lt; str buf &lt;&lt; 'ghi' end テスト3: 式展開 str = 'def' for i in 1..100000 buf = &quot;abc#{str…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft-tkzw.hatenadiary.org%2Fentry%2F20060709%2Fp4&quot; title=&quot; 文字列の連結、その２ - ぞえ の戯れ言&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>2006-07-09 00:00:03</published>
  <title> 文字列の連結、その２</title>
  <type>rich</type>
  <url>https://t-tkzw.hatenadiary.org/entry/20060709/p4</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
