项目
在 GitHub 查看
hoangatuan/iOS-Performance-Optimization
关于
本项目提供有关优化 iOS 应用性能的资料。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文iOS-Performance-Optimization
This project contains foundation knowledge and highly recommended resources on optimizing your iOS application performance. Contributions are welcome 👋
Table of Contents
Reduce App Size
Foundation knowledge
- Understand iOS App Size by Emerge
- Understand static framework & dynamic framework by Emerge
- Basic optimization to reduce app size by Apple
- Advance optimization to reduce app size by Apple
- Reducing app size by Apple
- Strip Binary Simple
- Xcode build time optimization
- Are Android apps THAT much smaller than iOS? by Emerge
Tools
- Emerge Tool size Analysis
- Periphery - Static analysis - Unused code detection
- FengNiao - Unused image detection
- Reaper by Emerge: Dynamic analysis for Unused code
- SmallStrings by Emerge: Reduce localisation size by 80%
Real-life example
- How Uber Deals with Large iOS App Size
- How 7 iOS Apps Could Save You 500MB of Storage by Emerge
- Spotify
- Make Your iOS App Smaller with Dynamic Frameworks
- Manage Image Resources
- Duolingo remove 10000 lines of unused code by using Reaper
- How the Tinder iOS App reduced the size of our localizations by 95%
Reduce Build time
Foundation knowledge
- Clean build vs. Incremental build
- Swift Compiler Performance by Apple
- Understanding Swift Performance by Apple: Understand how ARC works and how it impacts your app's performance
- Performance of value type by Swiftrocks
Tools
- Xcode Build time Rendering
- XCMetrics
- Tuist
- Bazel
- Cocoapod binary cache by Grab
- Build time analyzer: Measure the time Xcode takes to compile every funcs
Real-life example
App launch time
Foundation knowledge
- About the app launch sequence by Apple
- Cold launch vs Warm launch: Apple
- Dynamic Linker vs Static Linker
- Mach-O
- Dyld
- Protocol Conformance
Tools
- Xcode Instruments
Real-life example
- Apple
- Uber
- Facebook Dynamic Loading
- How Door Dash Reduced iOS App Launch Time by 60%
- Why Swift Reference Types Are Bad for App Startup Time - Emerge
App Runtime
Foundation Knowledge
- Thread explosion by SwiftSenpai
- Making efficient use of the libdispatch (GCD) by Apple engineer
Tools
App Hang
Foundation Knowledge
Tools
- Track down hangs with Xcode and on-device detection: track hangs during pre-release testing, show you how to identify issues in release builds using the Xcode Organizer
- Analyzing responsiveness issues in your shipping app
Memory Usage
Foundation Knowledge
- You don't always need weak self
- Nested closure weak self
- Detect Unused code using Memory graph debugger
- Automating Memory Leak Detection with CI Integration
- Analyze Heap Memory: Apple WWDC
- Copy-on-write
Tools
- Memory Leaks Check: A tool for detecting memory leak in CI
- MLeaksFinder: Hooks the dealloc method to check whether an object still exists after being released, thereby determining if there is a memory leak
- FBRetainCycleDetector: Traverses strong references between objects and builds a reference graph. If it detects a cycle, it indicates a retain cycle issue
Real life examples
App Crash
Foundation Knowledge
- Diagnosing issues using crash reports and device logs - A series of diagnosing crash issues by Apple
Tools
CI
Examples
探索相关项目
加载中…