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.
- 10x to 50x speed improvement, compared to
UIImage(named:)
- Simple API
- Written in Swift
- Swift 3.0+
- iOS 8.0+
Import the library in all files where you use it:
import FastImageLoader
imageView.image = FastImageLoader.shared.loadImage(named: "LovelyImage")
If you're using CocoaPods, just add this line to your Podfile:
pod 'FastImageLoader'
FastImageLoader is available under the MIT license. See the LICENSE file for more info.