Nuke 4.1 ⚡️
Nuke 4.1 is all about performance. Here are some notable performance improvements:
loadImage(with:into:)
method with a default config is 6.3x fasterCache
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
inPromise
where it makes sense - Simplified
Loader
implementation Cache
nodes are no longer deallocated recursively onremoveAll()
anddeinit
(I was hitting stack limit in benchmarks, it's impossible in real-world use).- Fix: All
Cache
publictrim()
methods are now thread-safe too.