<story><title>An error message if you put more than 2^24 items in a JS Map object</title><url>https://searchvoidstar.tumblr.com/post/659634228574715904/an-amazing-error-message-if-you-put-more-than-2-24</url></story><parent_chain></parent_chain><comment><author>nayuki</author><text>Definitely specific to the V8 JavaScript engine. I was able to put 40 million keys in a map in Firefox&amp;#x2F;SpiderMonkey. It was pretty fast and only took a few seconds.&lt;p&gt;The pitfall was that because I did it in the Developer Tools console, the CPU and memory usage would shoot through the roof from the autocompleter if I wrote any code that would cause a string representation of the map to be printed as a helpful hint.</text></comment>
<story><title>An error message if you put more than 2^24 items in a JS Map object</title><url>https://searchvoidstar.tumblr.com/post/659634228574715904/an-amazing-error-message-if-you-put-more-than-2-24</url></story><parent_chain></parent_chain><comment><author>Groxx</author><text>While lol-worthy in some ways (especially that error message - wow!): 16 million is a very &amp;quot;human-scale&amp;quot; number.  I&amp;#x27;m (somewhat) surprised that&amp;#x27;s the limit, and that I haven&amp;#x27;t heard about it before.</text></comment>