News for hackers. Stuff that matters.
Re:Performance comparison: counting words in Python, C/C++, ... by gernb on Sunday July 24, 2022 @01:25PM (#32215622)
Latner himself (creator of Swift) said Swift had speed issues because of ARC that they were hoping to solve with better code analysis. Did they?
Re:Performance comparison: counting words in Python, C/C++, ... by georgelyon on Sunday July 24, 2022 @01:42PM (#32215782)
They have been improving this steadily (I would argue it is rarely an issue nowadays, and there have always been simple workarounds), but there’s no reason a solution to the problem mentioned in the article should need to use ARC, and should use structs/protocols instead (which don’t use reference counting). I’ve seen a lot of Benchmarks that rate Swift poorly because of this.