Michael Long
Aug 16, 2023

--

I think you're making an assertion that's not necessarily backed up by facts.

Do you know how the dictionary stores keys internally? Ad you sure it's not copying the struct/key out as a reference type? Do you know how fast the struct and its values can be hashed?

Be interesting to actually measure and time the two different approaches.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet