<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inari111</author_name>
  <author_url>https://blog.hatena.ne.jp/inari111/</author_url>
  <blog_title>inari111 blog</blog_title>
  <blog_url>https://inari111.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>Goでslice結合するとき、append(slice1, slice2…)するのとfor _, s := range slice2 {slice1 = append(slice1, s)}1つずつappendするのどっちがパフォーマンスいいんだろう— inari111 (@inari111) 2018年2月14日 sliceを結合するときに、どういう書き方をするのがパフォーマンスがいいのか気になって検証してみた。 検証したのは2パターン。 パターン1: slice同士を結合 func appendSlice(n int) []string { sliceA := make([]string,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finari111.hatenablog.com%2Fentry%2F2018%2F02%2F14%2F233718&quot; title=&quot;Goでsliceを結合するときのパフォーマンスについて - inari111 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-02-14 23:37:18</published>
  <title>Goでsliceを結合するときのパフォーマンスについて</title>
  <type>rich</type>
  <url>https://inari111.hatenablog.com/entry/2018/02/14/233718</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
