|405||lines of code|
GCDSwift is a Swift wrapper for the most commonly used features of Grand Central Dispatch. It has four main aims:
GCDObjC is an Objective-C wrapper for the most commonly used features of Grand Central Dispatch. It has four main aims:
On iOS, the method UIImage#imageNamed: optimizes image loading in two ways:
The first optimization saves (loading) time at the cost of (memory) space.
For images that currently exist as UIImage objects in the running application, the second optimization saves both time and space; there's no need to load or decode the image, and there aren't duplicate copies each occupying memory.
CZSharedImage is a tiny library that provides the second optimization for images loaded using UIImage#imageWithContentsOfFile: and UIImage#imageWithData:.