Skip to content

Nuke 4.1 ⚡️

Compare
Choose a tag to compare
@kean kean released this 04 Oct 13:40

Nuke 4.1 is all about performance. Here are some notable performance improvements:

  • loadImage(with:into:) method with a default config is 6.3x faster
  • Cache operations (write/hit/miss) are from 3.1x to 4.5x faster

Nuke 4.0 focused on stability first, naturally there were some performance regressions. With the version 4.1 Nuke is again the fastest framework out there (see the benchmark). The performance is ensured by a new set of performance tests.

If you're interested in the types of optimizations that were made check out recent commits.

Nuke 4.1 also includes a new Performance Guide and a collection of Tips and Tricks (it's just a draft really).

Other Changes

  • Add convenience method loadImage(with url: URL, into target: AnyObject, handler: @escaping Handler) (more useful than anticipated).
  • #88 Add convenience cancelRequest(for:) function
  • Use @discardableResult in Promise where it makes sense
  • Simplified Loader implementation
  • Cache nodes are no longer deallocated recursively on removeAll() and deinit (I was hitting stack limit in benchmarks, it's impossible in real-world use).
  • Fix: All Cache public trim() methods are now thread-safe too.