3 ms·
Let’s slow down a minute here… It looks like some are assuming the problem is with SwiftUI and immediately speculating on the reasons, however even the author
by WhitneyLand 4y ago
Let’s slow down a minute here…
It looks like some are assuming the problem is with SwiftUI and immediately speculating on the reasons, however even the author admits they do nut understand the framework architecture well enough to be sure.
Some of the “problems” that needed to be optimized were using global state that triggered all kinds of unnecessary redraws. This is going to cause problems for any system.
Also the author endorses adding “animations just for flourish”, then laments that animations make things slow. The first point is not really a good idea. Beyond that synchronous animations by definition cause latency, that’s not a performance problem. How much of the problem was due to this isn’t mentioned.
The whole thing is not well argued and the conclusion of the title is suspect.
- vor_ 4y agoIf SwiftUI makes it that easy to fall into anti-patterns and the magic behind it is difficult to reason about, then I think performance is going to be a common issue for years to come.