<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't be used in 'real' 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"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></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 <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> 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 <<a href="mailto:howard.lovatt@gmail.com" target="_blank">howard.lovatt@gmail.com</a>> wrote:</div><br><div><div dir="ltr">How do you call <span style="font-size:12.8px">swift_class_getInstanceExtents, it doesn't show in Xcode?</span></div></div></blockquote></div><br><div>It's not provided as API by default. You can do this as an unsupported hack:</div><div><br></div><div>@_silgen_name("swift_class_getInstanceExtents")<br>func swift_class_getInstanceExtents(theClass: AnyClass)<br> -> (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>