[swift-evolution] Swift Performance (JSON parsing, for example)

Michael Gottesman 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:
> Hello.
> 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/


> Regards,
> -Van
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160219/a0f3a264/attachment.html>

More information about the swift-evolution mailing list