linkdrift
80,630 SwiftUI updates in 24 seconds

80,630 SwiftUI updates in 24 seconds

·4 min read

SwiftUI was supposed to be simpler and faster. It turned out as usual. In 24 seconds of a Release build, RocketTrace counted 80,630 SwiftUI updates across 310 views in hora. 12 hangs. The worst one,

SwiftUI was supposed to be simpler and faster. It turned out as usual. In 24 seconds of a Release build, RocketTrace counted 80,630 SwiftUI updates across 310 views in hora. 12 hangs. The worst one, 465 ms. The main thread was CPU-bound by SwiftUI updates and layout. That trace is from the morning of 2 November. Later that day, hora's Mac week, day and month grids left SwiftUI. The full story is on the hora blog, with traces, code before and after, and the numbers I don't have yet. This is the s

9
0
15
0
Read full article on X