[swift-users] Object size on heap

Howard Lovatt howard.lovatt at gmail.com
Tue Mar 22 22:04:52 CDT 2016


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.

  -- Howard.

On 23 March 2016 at 03:52, Jordan Rose <jordan_rose at apple.com> wrote:

>
> On Mar 22, 2016, at 8:47, Joe Groff via swift-users <swift-users at swift.org>
> wrote:
>
>
> On Mar 21, 2016, at 9:31 PM, Howard Lovatt <howard.lovatt at gmail.com>
> wrote:
>
> How do you call swift_class_getInstanceExtents, it doesn't show in Xcode?
>
>
> It's not provided as API by default. You can do this as an unsupported
> hack:
>
> @_silgen_name("swift_class_getInstanceExtents")
> func swift_class_getInstanceExtents(theClass: AnyClass)
>   -> (negative: UInt, positive: UInt)
>
>
> This has probably gone too far to hide it already, but, um, what do you
> plan to do with this information?
>
> Jordan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160323/83289877/attachment.html>


More information about the swift-users mailing list