Swift Performance: Too Slow for Production
blog.sudeium.com
Swift Performance: Too Slow for Production
1–10 of 17 posts
Re: Swift Performance: Too Slow for Production
#2Re: Swift Performance: Too Slow for Production
#3Re: Swift Performance: Too Slow for Production
#4Re: Swift Performance: Too Slow for Production
#5I'm currently deciding whether to start a project in Swift or Objective-C, I know very little about either, for learning purposes Objective C has the edge but I don't want to invest time learning something that's on its way out.
Re: Swift Performance: Too Slow for Production
#6I'm currently deciding whether to start a project in Swift or Objective-C, I know very little about either, for learning purposes Objective C has the edge but I don't want to invest time learning something that's on its way out.
I doubt Objective C is on its way out...
Re: Swift Performance: Too Slow for Production
#7Re: Swift Performance: Too Slow for Production
#8Here's a different comparison for what it's worth http://www.jessesquires.com/apples-to-apples-part-two/
So... Main conclusion is that Swift is not production ready yet.
Re: Swift Performance: Too Slow for Production
#9Also, "fast as C" is a slippery little thing; anything can be fast as C on some benchmark with an optimization for that benchmark, being reliably as fast as C and being able to engineer in the confidence that something is as "fast as C" all the time is quite another. Witness the number of people who will vigorously claim that Javascript implementations are "as fast as C", despite in reality not being anywhere near that except in the aforementioned carefully-engineered benchmarks. Especially beware of "adding integers in an array". That's easy to optimize and nowadays says little since everyone optimizes for that case, knowing it's going to be benchmarked.
In other news, the latest web framework is "easy to use" and "powerful" and probably "MVC". This is just throat clearing, not a description anymore, because nearly everything is "easy to use" and "powerful" and "MVC". Also, half the libraries posted to /r/$LANGUAGE are "A simple, powerful library for X", which probably translates to "A library I spent about 4 hours on" rather than any sort of increased probability of it being either simple or powerful.
Re: Swift Performance: Too Slow for Production
#10Why not profile and see where the time is actually going? Slow JSON parsing? Slow I/O?
I didn't spend a huge amount of time profiling this though, since it's very early days in my project and it'd take me less time to just rewrite what I'd done so far in a language that I know works.