Repository navigation
Releases
Releases · mackoj/swift-keychain
0.4.1
Performance. No API or behaviour change.
- No-prompt queries are ~6-14x faster on the live keychain.
KeychainStorenow builds itsinteractionNotAllowedLAContextonce instead of once per query. This coversexists,keys,attributes,updateAttributes,rename, a stream's first value and the update path ofsave. On the login keychain,existswent from 1.8-4.2 ms to ~0.3 ms andattributesfrom 1.8-3.8 ms to ~0.3 ms, with 45% fewer mallocs. The shared context is never evaluated, so it never holds a credential. (#7) Secret<String> ==compares UTF-8 in place. It no longer copies both strings intoData: 400 → 112 ns on an 840-byte token, with no allocations and one less copy of the secret in memory. (#7)
Also new: Benchmarks/ (package-benchmark) and docs/performance.md, plus architecture rules enforced with swift-llm-check (Architecture/, docs/architecture-rules.md). (#6, #7)