Tencent / LKImageKit

A high-performance image framework, including a series of capabilities such as image views, image downloader, memory caches, disk caches, image decoders and image processors.
Other
2.08k stars 287 forks source link

optimize cache size calculation #35

Open wang9262 opened 5 years ago

wang9262 commented 5 years ago

Current cache size calculates everytime when cacheImage: URL: calls,which will cause unnecessary traverse.When collectionView or tableview scroll fast,this will be somehow bottleneck.

So store the cost in every node may be more efficient.

tencent-adm commented 5 years ago

CLA assistant check
All committers have signed the CLA.