Skip to content

Swift library to speed up UIImage loading (in the cost of disk space)

License

Notifications You must be signed in to change notification settings

Pash237/FastImageLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Swift library to speed up UIImage loading (in the cost of disk space)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published