[swift-users] inline best practices?
jordan_rose at apple.com
Thu Mar 2 18:36:19 CST 2017
Please don’t use it ever. The underscores are there for a reason.
(I wouldn’t be surprised if some optimizer folks to come by and give a more nuanced answer later, but there are so many potential and actual pitfalls around it now that I wouldn’t say it’s ever a good idea.)
> On Mar 2, 2017, at 16:27, Erica Sadun via swift-users <swift-users at swift.org> wrote:
> Any best practices for `@inline(__always)`? When it's short? When has very few call sites? When the abstraction aids reading but hinders computation?
> Thanks -- E
> swift-users mailing list
> swift-users at swift.org
More information about the swift-users