<br><br><div class="gmail_quote">On Wed, May 14, 2008 at 8:50 PM, Andrew Straw <<a href="mailto:strawman@astraw.com">strawman@astraw.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Aha, I've found the problem -- my values were int64 and my keys were<br>
uint64. Switching to the same data type immediately fixes the issue!<br>
It's not a memory cache issue at all.<br>
<br>
Perhaps searchsorted() should emit a warning if the keys require<br>
casting... I can't believe how bad the hit was.<br>
<font color="#888888"></font></blockquote><div><br>I think it used to fail and that was fixed not so long ago. Was it casting the keys or was it casting the big sorted array? The latter would certainly slow things down and would be a bug, and a bug of the sort that might have slipped in when the casting was added.<br>
<br>Chuck<br></div></div><br>