RunLoopWorkDistribution icon indicating copy to clipboard operation
RunLoopWorkDistribution copied to clipboard

iOS Fast Scrolling with RunLoop Work Distribution

Results 8 RunLoopWorkDistribution issues
Sort by recently updated
recently updated
newest added

``` @implementation DWURunLoopWorkDistribution - (instancetype)init { if ((self = [super init])) { _maximumQueueLength = 30; _tasks = [NSMutableArray array]; _tasksKeys = [NSMutableArray array]; // _timer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(_timerFiredMethod:)...

我想问一下:对于这种优化,我们可以看到在tracking模式下,cell上面一片空白(或者你放一个比较小的背景占位图),但是当滑动停止,处于default模式了,这个时候渲染图片了,你会发现之前的空白(或占位图)会被填充,感觉视觉上的效果蛮差的。例如我们希望可以获得微信朋友圈或微博那样的体验,有没有更好的优化方案呢?我们抛开高度缓存这些角度,其他角度怎么优化呢?

使用kCFRunLoopCommonModes替代kCFRunLoopDefaultMode是不是会更好些呢,这样在滚动的时候也能进行加载。还是说有其他我没想到的问题?

![img_0484](https://user-images.githubusercontent.com/20237430/39295370-d0e88432-4970-11e8-8381-0715239fe204.PNG)

如果已进入页面不滑动页面就不会显示图片,

我将这个Demo转换成给collectionview 使用,然后从网络上下载图片,发现在上下滚动collectionview的过程中,原本在item = 1位置的图片,变到item = 2的位置,item = 2 的图片变到item = 1 的位置,也就是两个图片互相交换了位置,然后再滑动collectionview的时候又互相交换位置了,一直滚动就一直重复出现这个问题。