ios - Does the Swift toolchain eliminate code that is never called? -


if create xcode project ios single view application template , choose swift language, compiler exclude release build (binary) functions never called?

i'm wondering because want include third-party library has lot of superfluous classes & functions, , want keep app small & fast.

while agree comments, unlikely impact performance in significant way if included...

xcode 6 uses apple llvm compiler version 6.1, depending on how closely related llvm developer group's version optimization feature available http://llvm.org/docs/passes.html options such -dce: dead code elimination, -adce: aggressive dead code elimination.

one way know sure included checking assembly output using -emit-assembly option in swift compiler , review output, or opening binary in disassembler such hopper ( http://www.hopperapp.com/download.html )


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -