Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielamitay/iOS-App-Performance-Cheatsheet
A collection of code substitutions and configurations that can improve Objective-C code performance on iOS.
https://github.com/danielamitay/iOS-App-Performance-Cheatsheet
Last synced: 12 days ago
JSON representation
A collection of code substitutions and configurations that can improve Objective-C code performance on iOS.
- Host: GitHub
- URL: https://github.com/danielamitay/iOS-App-Performance-Cheatsheet
- Owner: danielamitay
- Archived: true
- Created: 2013-11-06T00:57:28.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T12:22:28.000Z (about 2 years ago)
- Last Synced: 2024-08-01T01:28:05.879Z (3 months ago)
- Homepage:
- Size: 124 KB
- Stars: 772
- Watchers: 57
- Forks: 68
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cheatsheet - iOS-App-Performance-Cheatsheet
- awesome-cheatsheet - iOS-App-Performance-Cheatsheet
README
# iOS App Performance Cheatsheet
**A collection of code substitutions and configurations that can improve the performance of Objective-C code on iOS.**
Most code substitutions and configurations documented here consist of replacing high-level APIs that were made for flexibility over performance with lower-level alternatives for the task at hand, or class properties that affect drawing performance. Good architecture and proper threading is always important for app performance, but sometimes we need to use specialized implementations.
### Table of Contents
**iOS App Performance Cheatsheet** is sectioned into Markdown files by Objective-C framework:
- [**Foundation**](Foundation.md)
- [NSDateFormatter](Foundation.md#nsdateformatter)
- [NSFileManager](Foundation.md#nsfilemanager)
- [NSObjCRuntime](Foundation.md#nsobjcruntime)
- [NSString](Foundation.md#nsstring)
- [**UIKit**](UIKit.md)
- [UIImage](UIKit.md#uiimage)
- [UIView](UIKit.md#uiview)
- [**QuartzCore**](QuartzCore.md)
- [CALayer](QuartzCore.md#calayer)### Why is this on GitHub?
- Great format for saving to disk or accessing via the web
- Encourages contributions and improvements
- [GitHub Flavored Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) looks nice### Disclaimer
There is a reason why this is called a *cheatsheet*. You should avoid premature optimizations, and only seek out code replacements when you have determined that a specific code path has become a performance bottleneck. Hopefully, however, this cheatsheet will provide a bit of insight into some of the bottlenecks that usually arise, and some of the options available to you.
### Contributions
Pull requests are welcome! The best contributions will consist of substitutions or configurations for classes/methods known to block the main thread during a typical app lifecycle.
### Contact
- [email protected]
- http://www.danielamitay.com