# \#allocation

**URL:** https://forums.swift.org/tag/allocation/905.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [How to know if a value type includes heap allocations and ref counting](https://forums.swift.org/t/how-to-know-if-a-value-type-includes-heap-allocations-and-ref-counting/72919)

<div class="topic-metadata">

**Author:** [@ConfusedByCode](https://forums.swift.org/u/ConfusedByCode)\
**Replies:** 15\
**Last updated:** [July 5, 2024, 12:53am UTC](https://forums.swift.org/t/how-to-know-if-a-value-type-includes-heap-allocations-and-ref-counting/72919 "2024-07-05T00:53:56Z")

</div>

I've been trying to improve my understanding Swift's performance characteristics. John McCall's WWDC talk, Exploring Swift Performance, from this year's WWDC is an excellent resource, and I highly recommend it for anyone…

---

## [ContiguousArray\<Int\> unexpectedly allocates discontiguously?](https://forums.swift.org/t/contiguousarray-int-unexpectedly-allocates-discontiguously/67819)

<div class="topic-metadata">

**Author:** [@JamesWidman](https://forums.swift.org/u/JamesWidman)\
**Replies:** 7\
**Last updated:** [October 13, 2023, 6:44am UTC](https://forums.swift.org/t/contiguousarray-int-unexpectedly-allocates-discontiguously/67819 "2023-10-13T06:44:25Z")

</div>

Hi all, Given this: var a: ContiguousArray\<Int\> = \[ 11, 22 \] ... and with this program paused in LLDB at some point where a is in scope, the LLDB command: frame variable --location a produces output like this: 0x00…
