<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shogonir</author_name>
  <author_url>https://blog.hatena.ne.jp/shogonir/</author_url>
  <blog_title>shogonir blog</blog_title>
  <blog_url>https://blog.shogonir.jp/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>JVM</anon>
    <anon>プログラミング</anon>
    <anon>最適化</anon>
  </categories>
  <description> 目次 この記事の目的 文字列連結の2種類の仕方 パフォーマンスを比較する 10万回ではなく1000回であれば 結論 1. この記事の目的 Javaで文字列を連結する際は、StringとStringBuilderのどちらを使えばいいのかを考えたいと思います。 String と StringBuilder の2つのクラスについては色々な主張を見かけます。例えば、 「文字列の連結を何回も行う時は String ではなく StringBuilder を使え」 「Java9からは最適化の方法が変わったからString使っていい」 などです。実際どっちが速いのか実験してみました。 サンプルコードをGit…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shogonir.jp%2Fentry%2F2018%2F02%2F04%2F141523&quot; title=&quot;【Java】文字列を10万回連結してみた【String vs StringBuilder】 - shogonir 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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shogonir/20180204/20180204132011.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-04 14:15:23</published>
  <title>【Java】文字列を10万回連結してみた【String vs StringBuilder】</title>
  <type>rich</type>
  <url>https://blog.shogonir.jp/entry/2018/02/04/141523</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
