Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.38 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.38 KB

CocoaPods Compatible License Platform

FastImageLoader

Library to speed up subsequent UIImage loading (in the cost of disk space).
It saves decoded image after first loading and then loads it fast.
To improve performance images are stored in native pixel format and mmap() is used to avoid memory copy.

It is a simple library. If you need something more fundamental, please try FastImageCache library.

Features

  • 10x to 50x speed improvement, compared to UIImage(named:)
  • Simple API
  • Written in Swift

Requirements

  • Swift 3.0+
  • iOS 8.0+

Usage

Import the library in all files where you use it:

import FastImageLoader
imageView.image = FastImageLoader.shared.loadImage(named: "LovelyImage")

Installation

CocoaPods

If you're using CocoaPods, just add this line to your Podfile:

pod 'FastImageLoader'

License

FastImageLoader is available under the MIT license. See the LICENSE file for more info.

Author

Pavel Alexeev