insidegui / WWDC

The unofficial WWDC app for macOS
https://wwdc.io
BSD 2-Clause "Simplified" License
8.6k stars 777 forks source link

Remove keypath filter on SessionViewModel #705

Closed allenhumphreys closed 1 year ago

allenhumphreys commented 1 year ago

• Use .modified for Realm automatic updates to reduce unnecessary change notifications • Short circuit empty objects for public func modify<T>(_ objects: [T] because Realm was still creating a transaction due to the try backgroundRealm.write • Remove the KeyPath filter on rxSession. I added it because I was testing impact on performance. I think there some value there but we'd need to supply all the KeyPaths that affect display, just removing it for now.