Yang Chao

Results 7 comments of Yang Chao

Hello @Dfmarulanda , I'm sorry to hear this. But I can't reproduce it in my own project (using KingfisherWebP 0.5.0, Kingfisher 5.5.0, libwebp 1.0.2 & Xcode 10.2). After double checking...

I'm guessing you are using `ImageSlideshow`, right? I set up a demo project with `ImageSlideshow`, but still couldn't reproduce this issue. Your screenshot just shows that KingfisherWebP allocates memory, but...

Hello, have you tried the `clearMemoryCache` method? Did it fix this memory problem?

Hi @duyhungtnn @WangKunKun @Out1and3r , I'm investigating this problem now, but cannot reproduce it myself currently. In order to make sure it's not the cache feature in Kingfisher itself, would...

> I believe the leak is mostly caused by the following allocation: > > ``` > void *bufCopy = malloc(bufSize); > ``` > > It is this line: > >...

> 内存暴增是由于缓存了解析的每一帧图,目的是降低CPU的消耗 ![image](https://private-user-images.githubusercontent.com/14089028/312823986-267cf70a-57ce-4b71-a344-d7f89143beea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTEwMDM0MzcsIm5iZiI6MTcxMTAwMzEzNywicGF0aCI6Ii8xNDA4OTAyOC8zMTI4MjM5ODYtMjY3Y2Y3MGEtNTdjZS00YjcxLWEzNDQtZDdmODkxNDNiZWVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzIxVDA2Mzg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4YjlhZDAyNTE5ZDY0NmU1YzE4YmExZDRiNzJiNWRjMjhiZjRiODcyNzhmYTA2NDEyMzYzNWJjYTlhYTg2ZDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ea8AzveXVH1cBNa8GoDKpYkFc_gs0stmmRz89vefUbg) 所以即使设置KingfisherManager缓存上限也是没用的 [#25 (comment)](https://github.com/yeatse/KingfisherWebP/issues/25#issuecomment-534470473) ![image](https://private-user-images.githubusercontent.com/14089028/312824812-a2b52161-98c4-40fa-a008-b20f80c4f146.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTEwMDM0MzcsIm5iZiI6MTcxMTAwMzEzNywicGF0aCI6Ii8xNDA4OTAyOC8zMTI4MjQ4MTItYTJiNTIxNjEtOThjNC00MGZhLWEwMDgtYjIwZjgwYzRmMTQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzIxVDA2Mzg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU1YTRjYWU1Mzk1OTVkOTZmZDM4ODkyY2UxNjFiODZkN2ZiMmU4ZDVlZGU3MGQzZTExZmZjNDY5NzFjZDQyY2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tLu0zUaTGdYZjaTxpoYd8PqmKLOgNZdhKRHfxcFg8Po) 简单的做法就是设置frameCache缓存上限,并且缓存处理过的每一帧图 NSCache 本身会在收到 memory warning 的时候清理资源所以感觉还好,不加的话在某些场景会非常卡。后面我可以提供个开关配置下。

You need to incorporate a wrapper class into your project to make use of it.. I have provided a demonstrative use case of the Stitcher in this sample project: https://github.com/yeatse/opencv-spm-example/tree/stitching