Movatterモバイル変換


[0]ホーム

URL:


Wednesday,February28,2018

Code Size Optimization Mode in Swift 4.1

Erik Eckstein:

We have seen that using-Osize reduces code size from 5% to even 30% for some projects.

But what about performance? This completely depends on the project. For most applications the performance hit with-Osize will be negligible, i.e. below 5%. But for performance sensitive code-O might still be the better choice.

[…]

But in contrast to-O, the compiler tries to avoid code duplication. For example, when inlining functions the compiler uses a lower size limit to decide whether a function should be inlined.

1 CommentRSS ·Twitter


Michael Tsai - Blog - Swift 4.1
April 12, 2018 1:41 PM

[…] Previously: Swift 4: Synthesizing Equatable and Hashable Conformance, Swift 4.1 Conditional Conformance Is Amazing, Code Size Optimization Mode in Swift 4.1. […]

Leave a Comment

  

Black Friday
Blog
Archives
Tag Cloud
Top Posts

Recently Updated
RSS Feed ·Comments
Mastodon ·Twitter
Apple News
Trackback

Support this site viaPatreon.

Try my Mac apps:

DropDMGDropDMGDropDMG
EagleFilerEagleFilerEagleFiler
SpamSieveSpamSieveSpamSieve
ToothFairyToothFairyToothFairy
Copyright © 2000–2025Michael Tsai.

[8]ページ先頭

©2009-2025 Movatter.jp