<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ayato0211</author_name>
  <author_url>https://blog.hatena.ne.jp/ayato0211/</author_url>
  <blog_title>(define -ayalog '())</blog_title>
  <blog_url>https://ayato.hateblo.jp/</blog_url>
  <categories>
    <anon>Clojure</anon>
    <anon>stackoverflow</anon>
  </categories>
  <description>Why inserting 1000 000 values in a transient map in Clojure yields a map with 8 items in it?興味深かった。ベクターに対して同様のことを行った場合は期待通りに動くけど、マップに対してだと動かないという例。 (count (let [m (transient [])] (dotimes [i 1000000] (assoc! m i i)) (persistent! m))) ; =&gt; 1000000 (count (let [m (transient {})] (dotimes [i 1000000] (…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayato.hateblo.jp%2Fentry%2F20150417%2F1429226577&quot; title=&quot;1,000,000 回 assoc! を transient な map に行ったけど、 8 個しか値が入っていないのは何故? - (define -ayalog &amp;#39;())&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>2015-04-17 08:22:57</published>
  <title>1,000,000 回 assoc! を transient な map に行ったけど、 8 個しか値が入っていないのは何故?</title>
  <type>rich</type>
  <url>https://ayato.hateblo.jp/entry/20150417/1429226577</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
