<div dir="ltr">I am writing custom collection classes and trying to assess which one is better, both in terms of performance and memory usage. Won&#39;t be used in &#39;real&#39; code, just to guide development.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">  -- Howard.<br></div></div>
<br><div class="gmail_quote">On 23 March 2016 at 03:52, Jordan Rose <span dir="ltr">&lt;<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On Mar 22, 2016, at 8:47, Joe Groff via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt; wrote:</div><br><div><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Mar 21, 2016, at 9:31 PM, Howard Lovatt &lt;<a href="mailto:howard.lovatt@gmail.com" target="_blank">howard.lovatt@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">How do you call <span style="font-size:12.8px">swift_class_getInstanceExtents, it doesn&#39;t show in Xcode?</span></div></div></blockquote></div><br><div>It&#39;s not provided as API by default. You can do this as an unsupported hack:</div><div><br></div><div>@_silgen_name(&quot;swift_class_getInstanceExtents&quot;)<br>func swift_class_getInstanceExtents(theClass: AnyClass)<br>  -&gt; (negative: UInt, positive: UInt)<br></div></div></div></blockquote></div><br></span><div>This has probably gone too far to hide it already, but, um, what do you plan to do with this information?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Jordan</div></font></span></div></blockquote></div><br></div>