5 posts tagged ‘Optimization’
Swift Prospective Vision: Accessors
John McCall (forum): However, this approach has significant problems. The biggest is that the get accessor has to return an independent value. If the accessor is just returning a value stored in memory, which is very common for data structures, this means the value has to be copied.[…]This vision document lays out the design space […]
Triggering Swift Property Observers From Initializers
Natalia Panferova: In Swift, property observers such as willSet and didSet are not called when a property is set in an initializer. This is by design, as the initializer's purpose is to set up the initial state of an object, and during this phase, the object is not yet fully initialized. However, if we need […]
Smaller and Faster Updates With Sonoma
Howard Oakley (Hacker News): When a user accepts Software Update’s invitation to upgrade to macOS 13 or 14, rather than downloading a full installer app of about 12 GB, Ventura or Sonoma will instead attempt an update, in which only changed files are copied to the System volume, substantially reducing the amount to be downloaded, […]
SpamSieve 3.0.2
SpamSieve 3.0.2 greatly improves the workaround for the macOS bug where sometimes Mail extensions don’t work at all. By reading Mail’s database directly, instead of using AppleScript, SpamSieve is able to work much faster, with no overhead in Mail itself. It’s also no longer limited by mailboxes that have so many messages that Mail would […]
Control Center in macOS Always Using CPU
Frank A. Krueger (Hacker News): The Control Center icon in the Mac [menu bar] is always running and always using 1% CPU. Not a big deal, but I finally had to know wtf it was doing…Turns out it is constantly re-rendering its SwiftUI (running layout) even though there is no UI visible. 🤣 Yay for […]