Repository navigation
Fix continuous-scroll decode starvation and duplicate long-strip work - #107
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
针对条漫持续下滑一段时间后,在页边界出现停顿/图片随后才出现的问题,修复当前解码与预加载管线中可以从代码直接确认的几个阻塞点。
修改
连续滚动预加载不再对未知几何页面默认先解 6144px:
把 LocalImageView/foreground 的取消真正传递到共享解码任务:
去掉“只要有 foreground 就冻结整个预加载队列”的全局阻塞:
修复 0.6 秒 debounce 在快速连续滚动中不断重置的问题:
回归覆盖
本 PR 不调整 NSCache 内存额度,也不通过扩大缓存掩盖重复解码问题。