<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>github.com Python 3.12から参照カウントを固定化するImmortal Objectが導入されたのですが、それがinterned string全てを強制的に固定参照カウントにしてしまっていました。 Pythonの文字列はimmutableなので、短くて大量に同じ値が出てくる可能性がある文字列は積極的にオブジェクトを1つにまとめて省メモリ化したいです。 さらにその文字列が変数名などと共通する可能性があるときは、インターン化することで単にインスタンスを一つにまとめることによる省メモリ効果だけでなく、その文字列をキーにして名前を参照するときに文字列比較がポインタ比較だけで終わるとい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F2024%2F10%2F02%2F144631&quot; title=&quot;Python 3.12.7 で msgpack におけるメモリリークが修正された - methaneのブログ&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>2024-10-02 14:46:31</published>
  <title>Python 3.12.7 で msgpack におけるメモリリークが修正された</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/2024/10/02/144631</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
