News for hackers. Stuff that matters.
Re:The Surprising Cost of Protocol Conformances in Swift by sond813 on Sunday December 05, 2021 @02:21PM (#29452124)
Building up the cache at launch/dynamic link time does have a performance hit of a few ms, but if you know it will save you many runtime checks it can be worth it. Definitely makes sense for the runtime to have the lazy behavior built in. Hopefully the dyld cache will help get the best of both solutions by persisting a cache across multiple launches.

There are no comments on this comment yet.