Tag

Questions tagged “Performance

Start from this tag, then add more in the filter bar to narrow further. The URL keeps your choices so you can bookmark or share the same view.

How much data can UserDefaults store, and how does it work on disk?

Explain UserDefaults as a small plist-backed prefs store covering size limits, async disk writes, suiteName vs standard, and why main-thread access is allowed but not free

How does Swift method dispatch work?

Explain Swift's three method-dispatch mechanisms—static, table (vtable and protocol witness tables), and Objective-C message send—and show when final, value types, and @objc dynamic change which one the compiler uses

What collection types are available in Swift, and when would you use each one?

Explain Swift's protocol-driven collection model, then compare Array, Set, Dictionary, and Range by behavior, complexity, hashing, ordering, copy-on-write, and thread-safety tradeoffs