<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thank you for effort.<div><br></div><div>Possible solution is to map typecodes to orderable id's and re-sort every time dynamic loader changes type metadata. Any takers?</div><div><br></div><div>That way, we will only add one to two array lookups to every TYPECASE invocation. Additional complexity for re-sort is single to small number of invocations.</div><div><br></div><div><div><div>On Jun 8, 2012, at 12:23 AM, Mika Nystrom 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; ">The reason for the slowdowns is clear if you study the following code<br>for IsSubtype.</span></blockquote></div><br></div></body></html>