[swift-evolution] Swift Performance (JSON parsing, for example)
mgottesman at apple.com
Fri Feb 19 23:22:13 CST 2016
> On Feb 19, 2016, at 1:19 PM, Vanderlei Martinelli via swift-evolution <swift-evolution at swift.org> wrote:
> This is not a request for change in the syntax and I don't if this is the appropriate place, but for many Swift programmers experience and my own experience, some things in Swift are very, very slow than Objective-C and other languages. One of these things is parsing JSON data using dictionaries/arrays (using Swift native types or NSDictionary, the result is near the same).
> You can read more info in articles like this one: https://blog.sudeium.com/2014/12/10/swift-performance-too-slow-for-production/ <https://blog.sudeium.com/2014/12/10/swift-performance-too-slow-for-production/>
> Other thing: since I am talking indirectly of JSON parsing, there is some expectation that it be handled natively on the Swift, with a suitable JSON data format than just dictionary/array?
If you find a specific test case that is slower than objective-c, please create a benchmark and contribute it via pull request. The benchmarks are located in ./swift/benchmark/
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution