<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 14, 2012, at 4:32 AM, Kristján Valur Jónsson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">&nbsp;I would like to two or more compile time<br>settings to choose from: &nbsp;Memory optimal, speed optimal, (and mix).</span></blockquote></div><br><div>A compile time option would be nice.</div><div><br></div><div>The default should be what we've had though.</div><div>The new settings cause a lot more collisions</div><div>and resizes. &nbsp;The resizes themselves have more</div><div>collisions than before (there are few collisions</div><div>when resizing into a quadrupled dict than into</div><div>a doubled dict). &nbsp;</div><div><br></div><div>Dicts get their efficiency&nbsp;from sparseness.</div><div>Reducing the mindict size from 8 to 4 causes</div><div>substantially more collisions in small dicts</div><div>and gets closer to a linear search of a small tuple.</div><div><br></div><div><br></div><div>Raymond</div></body></html>