[swift-dev] inefficient enum layout with optionals

2017-11-06 Thread Kelvin Ma via swift-dev
i noticed that this enum takes up 9 bytes of storage 1> enum QuantizationTable 2. { 3. case q8 (UnsafeMutablePointer), 4. q16(UnsafeMutablePointer) 5. } 6> MemoryLayout.size $R0: Int = 9 but when i make it optional, it takes up 10 7> MemoryLayout.size $R1: Int = 10 ca

Re: [swift-dev] [swift-evolution] Re-pitch: Deriving collections of enum cases

2017-11-06 Thread Tony Allevato via swift-dev
On Sun, Nov 5, 2017 at 11:54 PM Jacob Bandes-Storch via swift-evolution < swift-evolut...@swift.org> wrote: > Over a year ago, we discussed adding a magic "allValues"/"allCases" static > property on enums with a compiler-derived implementation. The original > proposal > PR

Re: [swift-dev] inefficient enum layout with optionals

2017-11-06 Thread John McCall via swift-dev
> On Nov 6, 2017, at 3:46 AM, Kelvin Ma via swift-dev > wrote: > i noticed that this enum takes up 9 bytes of storage > > 1> enum QuantizationTable > 2. { > 3. case q8 (UnsafeMutablePointer), > 4. q16(UnsafeMutablePointer) > 5. } > 6> MemoryLayout.size > $R0: In

Re: [swift-dev] inefficient enum layout with optionals

2017-11-06 Thread Joe Groff via swift-dev
> On Nov 6, 2017, at 1:04 AM, John McCall via swift-dev > wrote: > >> On Nov 6, 2017, at 3:46 AM, Kelvin Ma via swift-dev >> wrote: >> i noticed that this enum takes up 9 bytes of storage >> >> 1> enum QuantizationTable >> 2. { >> 3. case q8 (UnsafeMutablePointer), >> 4.

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #1439

2017-11-06 Thread Pavel Yaskevich via swift-dev
Same as with Ubuntu 16.10 - Greg, please take a look. > On Nov 6, 2017, at 4:06 PM, no-re...@swift.org wrote: > > [FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04 [#1439] > > Build URL: > https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/1439/ >