<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rettydev</author_name>
  <author_url>https://blog.hatena.ne.jp/rettydev/</author_url>
  <blog_title>Retty Tech Blog</blog_title>
  <blog_url>https://engineer.retty.me/</blog_url>
  <categories>
  </categories>
  <description>ソフトウェアエンジニアの福井(@eyasy1217)です。 Go 1.23で新しくuniqueパッケージが追加されました。このuniqueパッケージはinterningを提供します。 interning interningとはGoに限らず、新しいオブジェクトを作成するときにすでに同じオブジェクトのメモリ割り当てがあればそのメモリを再利用し、メモリスペース効率を向上させる方法です。 interningを活用した具体的なユースケースとしては以下があると思います。 株価データの集計バッチで、同じ値が頻出するティッカーと株価のオブジェクトのinterning フリマサイト 評価データの集計バッチで、「…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fengineer.retty.me%2Fentry%2Fgo-interning&quot; title=&quot;リソース効率向上のためのGoのuniqueパッケージ - Retty Tech 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/r/rettydev/20241012/20241012103826.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-10-18 09:55:43</published>
  <title>リソース効率向上のためのGoのuniqueパッケージ</title>
  <type>rich</type>
  <url>https://engineer.retty.me/entry/go-interning</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
