Re: [swift-users] [swift-evolution] Low efficiency multidimensional array problem

2017-04-21 Thread www.hbu.cn--- via swift-users
Hi Jaden Geller, Saagar , Thanks for the reply and advice. Array2D is really faster than the default two dimension. But I think as a general language, Swift should provide default efficient ways for multiple dimension array. I found this problem when I write an algorithm. It is a DP problem

Re: [swift-users] Swift version of C #defines

2017-04-21 Thread Quinn "The Eskimo!" via swift-users
On 21 Apr 2017, at 11:03, Rick Mann via swift-users wrote: > It seems Swift (in Xcode 8.3.2) can't generate symbols for #defines that have > expressions. Correct. There’s various bugs on file about this already but SR-485 is a good place to start. Sh

Re: [swift-users] Need clarification on Swift CI benchmark

2017-04-21 Thread Proyb P via swift-users
Not sure if your explaination is correct, I think the Apple team explained Speedup <1.0x is slower under Regression and >1.0x is faster under improvement. The table seriously need improvement or everyone will be confused. On Fri, Apr 21, 2017 at 12:27 AM, Saagar Jha wrote: > Delta is (OLD_MIN -

[swift-users] Any way to declare a method that suppresses the string interpolation warning?

2017-04-21 Thread Rick Mann via swift-users
I have a debugLog() method that looks like this: func debugLog(_ inMsg: T, _ inFile : String = #file, _ inLine : Int = #line) { let df = DateFormatter() df.dateFormat = "-MM-dd HH:mm:ss.SSS" let time = df.string(from: Date()) let file = (inFile as NSStr

[swift-users] Swift version of C #defines

2017-04-21 Thread Rick Mann via swift-users
It seems Swift (in Xcode 8.3.2) can't generate symbols for #defines that have expressions. e.g. this one works, and gets a symbol: #define LGS_MAX_IR_PANORAMA_IMAGE_COUNT 10 But this one doesn't: #define LGS_IMAGE_DATA_SIZE 25*1024*1024 -- Rick Mann rm...@latencyzero.com __