News for hackers. Stuff that matters.
Re:The Surprising Cost of Protocol Conformances in Swift by earthboundkid on Saturday December 04, 2021 @12:46AM (#29439002)
I feels like I must be missing something. 3ms is extremely slow. Surely it should be 3us, no? What’s it doing that is so slow?
Re:The Surprising Cost of Protocol Conformances in Swift by flohofwoe on Saturday December 04, 2021 @06:00AM (#29440087)
Function names like "_dyld_find_protocol_conformance" seem to indicate that DLLs might need to be accessed, and my (entirely subjective) impression is that this general area seems to have become a lot slower in recent macOS versions, at least when system DLLs are involved.
Re:The Surprising Cost of Protocol Conformances in Swift by sond813 on Sunday December 05, 2021 @11:52AM (#29450623)
It’s ms, that slow because every protocol conformance in every dylib needs to be checked. When this gets to 100k+ like in many large apps it takes multiple milliseconds