Skip to content

Comment on Swift Performance: Too Slow for Productionparent

Comments

Blog author here. I actually did: the vast majority of time is spent in the Swift Runtime. The JSON parsing is via NSJSONSerialization, which is an Apple library written in Objective-C, and it's fast. I'm not measuring IO, I'm only measuring the time spent turning the NSDictionary objects that come back from NSJSONSerialization into my model objects.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.