3 ms·
In my MacOS Passwords I have ±3400 entries. A roughly 341KB CSV. Searching in that list in the preference panel or Keychain app is dog-slow on my M1 Pro Studio
by michelb 2y ago
In my MacOS Passwords I have ±3400 entries. A roughly 341KB CSV. Searching in that list in the preference panel or Keychain app is dog-slow on my M1 Pro Studio or on my M3 MacBook Air. How??
- constantcrying 2y agoIt seems obvious how you could make it slow. Just naively iterate over the entire series of objects looking up the name for each. This is the obvious low effort, low complexity solution. Of course you could make it fast, but that would take time and effort for a feature most people won't notice.
- michelb 2y agoI agree on the priority here, but this looks like an OS component that appears in other apps. Filtering history in Safari is equally slow.
- anonymoushn 2y agoYour proposed solution would run in less than 1ms though.
- skydhash 2y agoSwiftUI and Catalyst. Somebody has probably implemented that list and try to rebuild the app UI at every keystroke (I think the UI is a single thread on macOS). There are optimizations, but that requires being aware that beneath the declarative world, it's an imperative foundation.
- eviks 2y agoNo, it's been slow long before that, that's just one of the many abandoned apps from the golden age of efficiency and superior UI
- wetpaws 2y ago[dead]
- bouke 2y agoWhen the first MacBooks came out with a Secure Enclave, Keychain was just unworkable slow. You had to type your search query elsewhere and then paste it in, or you’d be looking at a beachball for minutes. Took them a major OS X release before it became somewhat bearable again. The new Passwords is a joke. UX errors all over the place, modal based view with a toggle to start editing. If you need to enter a password in another area of System Preferences, you need to back out of the auth flow, switch to Passwords and copy the credentials over to a temporary file.