> On Apr 4, 2016, at 4:57 PM, Jonathan Hull via swift-users
> wrote:
>
> I had a quick question on the memory used by enums with associated values in
> the current implementation. If I have an enum like the following:
>
> enum MyEnum {
> case mostCommonlyUsed
> case somewhatCommo
> On Apr 4, 2016, at 4:57 PM, Jonathan Hull via swift-users
> wrote:
>
> If this enum is going to be used by tens/hundreds of thousands of structs, am
> I actually saving any space by breaking out the rarer cases which store more
> data or is the footprint just equal to the largest case?
Enu
On 05 Apr 2016, at 01:57, Jonathan Hull via swift-users
wrote:
>
> I had a quick question on the memory used by enums with associated values in
> the current implementation. If I have an enum like the following:
>
> enum MyEnum {
> case mostCommonlyUsed
> case somewhatCommon (Int,
I had a quick question on the memory used by enums with associated values in
the current implementation. If I have an enum like the following:
enum MyEnum {
case mostCommonlyUsed
case somewhatCommon (Int,Int)
case prettyRare (Int,Int,Int,Int,Int)
}
If this enum is going