[swift-evolution] final class performance

Fabian Ehrentraud Fabian.Ehrentraud at willhaben.at
Thu Jun 23 02:16:10 CDT 2016

Somewhere I read that we should always write "final class" where possible, as it is more performant. Is this really the case, especially for non-library modules? Can't the compiler infer whether a class has no subclasses when compiling? Writing "final" just for performance reasons feels wrong. 

-- Fabian

More information about the swift-evolution mailing list