Skip to content

Tags: zeitiger/SDWebImage

Tags

2.7

Toggle 2.7's commit message
Add a cached parameter to the success block to tell the receiver if t…

…he image came from cache or network SDWebImage#181

2.6

Toggle 2.6's commit message
Do not check request response status code when the protocol isn't HTTP (

fix SDWebImage#110)

2.5

Toggle 2.5's commit message
Fix a bug in SDImageCache making first request to disk cache to alway…

…s return nil (fix SDWebImage#81)

2.4

Toggle 2.4's commit message
Failsafe a very common usage error (passing URL as NSString instead o…

…f NSURL)

2.3

Toggle 2.3's commit message
Perform disk cache out operations asynchronousely in order to prevent…

… from blocking the main runloop when a lot of cache queries are performed at the same time

2.2

Toggle 2.2's commit message
Do not convert images to JPEG when stored to disk for caching

This saves CPU and memory in all cases and alpha channel / image clearness if orignal format was PNG or GIF.

2.1.0

Toggle 2.1.0's commit message
Better nil url handling

2.1

Toggle 2.1's commit message
Better nil url handling

2.0.0

Toggle 2.0.0's commit message
Replace the NSOperation based downloader by a simple async NSURLConne…

…ction (read-on to understand why)

I finally found the reason behind the download not started while UITableView is manipulated: the default NSURLConnection runloop mode. Its default mode is NSEventTrackingRunLoopMode which is interrupted by UI events. Changing default NSURLConnection runloop mode to NSRunLoopCommonModes just fix this good old responsiveness issue.

I thus decided to replace the current NSOperation based implementation by this finding, as NSOperation is far more expensive than simple async connections. Additionally, moving aways from NSOperation here fix an odd lagging issue with iOS 4, an issue I can't explain at the moment.

Note that `SDWebImageDownloader`'s `setMaxConcurrentDownloads:` method is now a no-op as I didn't implemented the NSOperation queuing system with async connections. I don't think it still necessary as thread-less async connectaions are very lightweight. If you think there is a real need of this, I may reconsider and implement it in the future. In the meantime, this method does nothing and its usage is declared as deprecated.

2.0

Toggle 2.0's commit message
Replace the NSOperation based downloader by a simple async NSURLConne…

…ction (read-on to understand why)

I finally found the reason behind the download not started while UITableView is manipulated: the default NSURLConnection runloop mode. Its default mode is NSEventTrackingRunLoopMode which is interrupted by UI events. Changing default NSURLConnection runloop mode to NSRunLoopCommonModes just fix this good old responsiveness issue.

I thus decided to replace the current NSOperation based implementation by this finding, as NSOperation is far more expensive than simple async connections. Additionally, moving aways from NSOperation here fix an odd lagging issue with iOS 4, an issue I can't explain at the moment.

Note that `SDWebImageDownloader`'s `setMaxConcurrentDownloads:` method is now a no-op as I didn't implemented the NSOperation queuing system with async connections. I don't think it still necessary as thread-less async connectaions are very lightweight. If you think there is a real need of this, I may reconsider and implement it in the future. In the meantime, this method does nothing and its usage is declared as deprecated.