<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>microx</author_name>
  <author_url>https://blog.hatena.ne.jp/microx/</author_url>
  <blog_title>.blog</blog_title>
  <blog_url>https://yowayowaengineer.hatenablog.com/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>概要 LeetCode の “Count and Say” 問題で、Go 言語における string と []byte の性能差が顕著に生じた。 自前で書いた RLE（Run-Length Encoding 風）実装では 8 ms、公式サンプルでは 0 ms。 この差を生んだ原因は、文字列のイミュータビリティとメモリ割り当ての仕組み、数値変換コストだった。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyowayowaengineer.hatenablog.com%2Fentry%2F2025%2F11%2F05%2F180000&quot; title=&quot;Go の文字列結合が遅い理由 ― Count and Say で学ぶ高速化の要点 - .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>2025-11-05 18:00:00</published>
  <title>Go の文字列結合が遅い理由 ― Count and Say で学ぶ高速化の要点</title>
  <type>rich</type>
  <url>https://yowayowaengineer.hatenablog.com/entry/2025/11/05/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
