Skip to content

2.0.1

Latest

Choose a tag to compare

@kylehughes kylehughes released this 28 Nov 03:06

Changed

  • Outlined UserDefaults launch-argument parsing out of @inlinable primitive getters and skipped the second url(forKey:) lookup when a URL key is unset.
  • Replaced NSLock with OSAllocatedUnfairLock across stores, observation registries, and migration tracking, and added a lock-free fast path to ObjectAssociation.
  • Replaced generic NSObject observer subclasses in PersistentKeyUIObservableObject, PersistentKeyValues, and PersistentKeyValuePublisher with a shared non-generic observer bridge, and removed an unused ObservableObject conformance on the internal UI observer.
  • Key-indexed observation registries in StoreKeyObservationRegistry and InMemoryPersistentKeyValueStore, reduced lock acquisitions in UserDefaultsKeyChangeMonitor, and replaced UUID identity generation in InMemoryPersistentKeyValueStore with a monotonic counter.
  • Eliminated redundant property-list walks, copies, and binary serializations during checked encoding and migration, computed migration key identities once per setup, and removed large generic specializations in PropertyListStorage, isMigrationCompleted(id:), and UserDefaults.isValidMigrationDomain.