You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. DebounceTaskScheduler - cachedItemsDict: merges the same tasks with gap and only executes the last task. 2. Write file: remove .barrier - CZDiskCacheManager.ioQueue.async()
Avoid blocking: writing files is very frequent
Flag shouldEnableCachedItemsDict: indicates whether to save cached file information. e.g. url, size. Defaults to false.
CZWebImage = false, CZHttpFile = true - large files.
The text was updated successfully, but these errors were encountered:
geekaurora
changed the title
[Performance][SlowWhenScrolling ] CZWebImage
[Performance][SlowWhenScrolling ] LoadMore - CZWebImage
May 30, 2021
geekaurora
changed the title
[Performance][SlowWhenScrolling ] LoadMore - CZWebImage
[Performance][SlowWhenScrolling ] LoadMore / CZWebImage
May 30, 2021
geekaurora
changed the title
[Performance][SlowWhenScrolling ] LoadMore / CZWebImage
[Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - scrolling.
May 31, 2021
geekaurora
changed the title
[Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - scrolling.
[Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
May 31, 2021
geekaurora
changed the title
[Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
[MileStone][Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
May 9, 2022
geekaurora
changed the title
[MileStone][Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
[P0][Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
May 9, 2022
geekaurora
changed the title
[P0][Performance][SlowWhenScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
[P0][Performance][RootTicket][CZGithub SlowScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
Nov 25, 2022
geekaurora
changed the title
[P0][Performance][RootTicket][CZGithub SlowScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
[Fixed][P0][Performance][RootTicket][CZGithub SlowScrolling ] CZWebImage consumes 83.2% CPU time - CZDiskCacheManager.flushCachedItemsDictToDisk().
Nov 25, 2022
My Doc
Description
Sub ticket
Reasons: CZDiskCacheManager in CZHttpFile package
CZWebImage - Call Stack
1. Write fileInfo - setCachedItemsDict
2. Write downloaded file - with .barrier async: [Risky][Won't Fix] write file with .atomic option.
Sub ticket: #38
Investigation
Solutions
Without flushCachedItemsDictToDisk(): 60 FPS
1. DebounceTaskScheduler - cachedItemsDict: merges the same tasks with
gap
and only executes the last task.2. Write file: remove .barrier - CZDiskCacheManager.ioQueue.async()
Added back
[Risky?] Not Added Back!!
Sub ticket: [Won't Fix][P2][Performance] CZDiskCacheManager.setCacheFile() - WriteFile threadsafety ioQueue.async(flags: .barrier) #38
Other improvements
sync()
- block main thread when get cache..userInitiated
to.default
(Faster: image slower)Sub improvements
No need
The text was updated successfully, but these errors were encountered: