Mark Smith

4pods

CZSharedImage

On iOS, the method UIImage#imageNamed: optimizes image loading in two ways:

  1. It caches recently loaded UIImage objects to avoid reloading them.
  2. Multiple requests for the same named image get a reference to the same UIImage object.

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:.

License: MIT

  • Objective C

GCDObjC

GCDObjC is an Objective-C wrapper for the most commonly used features of Grand Central Dispatch. It has four main aims:

  • Organize the flat C API into appropriate classes.
  • Use intention-revealing names to distinguish between synchronous and asynchronous functions.
  • Use more convenient arguments such as NSTimeIntervals.
  • Add convenience methods.

License: MIT

  • Objective C

GCDSwift

GCDSwift is a Swift wrapper for the most commonly used features of Grand Central Dispatch. It has four main aims:

  • Organize the flat C API into appropriate classes.
  • Use intention-revealing names to distinguish between synchronous and asynchronous functions.
  • Use more convenient arguments.
  • Add convenience methods.

License: MIT

  • Swift