Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
[X] I have read the wiki page and cheat sheet, but there is no information I need.
[X] I have searched in existing issues, but did not find a same one.
[X] I want to report a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.
Issue Description
Doing a simple load remote image in a SwiftUI view increase application memory usage
What
I use KFImage to load 28 remote PNG images about 200Ko each. Before loading images, application is around 50 Mo memory usage. After loading images and show screen, the application memory usage is 130 Mo.
I have check with Instruments and seen images turns from 200 ko to several Mo
I have tried another library named url-image to achieve the same and application memory stays as it should from 50 Mo to 52 Mo.
Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
Issue Description
Doing a simple load remote image in a SwiftUI view increase application memory usage
What
I use
KFImage
to load 28 remote PNG images about 200Ko each. Before loading images, application is around 50 Mo memory usage. After loading images and show screen, the application memory usage is 130 Mo.I have check with Instruments and seen images turns from 200 ko to several Mo
I have tried another library named
url-image
to achieve the same and application memory stays as it should from 50 Mo to 52 Mo.Reproduce
KFImage(url: url) .resizable() .aspectRatio(contentMode: .fit)
Other Comment
Here is the same images to reproduce
https://gps.algo.tibtop-connect.com/images/xgy6LHiVq4Tg.png https://gps.algo.tibtop-connect.com/images/oWNudpAZ4xFR.png https://gps.algo.tibtop-connect.com/images/N_RyqHqWHIUx.png https://gps.algo.tibtop-connect.com/images/62j7WezmaxPs.png https://gps.algo.tibtop-connect.com/images/8HEPDEwvOBBk.png https://gps.algo.tibtop-connect.com/images/mhkUXPXZUWgr.png https://gps.algo.tibtop-connect.com/images/JANAP7nxCv35.png https://gps.algo.tibtop-connect.com/images/-anrraFQR56F.png https://gps.algo.tibtop-connect.com/images/ntSlzD6zGzYA.png https://gps.algo.tibtop-connect.com/images/8iEsm3vWvhzA.png https://gps.algo.tibtop-connect.com/images/Gc3JsStKX62D.png https://gps.algo.tibtop-connect.com/images/_HEv5fuNKf4J.png https://gps.algo.tibtop-connect.com/images/5Dfkg4Qcaq0Y.png https://gps.algo.tibtop-connect.com/images/5vSjhNSxQX27.png https://gps.algo.tibtop-connect.com/images/L1ZyiEfYmwtm.png https://gps.algo.tibtop-connect.com/images/47J3T2sr_fJa.png https://gps.algo.tibtop-connect.com/images/rE4w0wNZCfR6.png https://gps.algo.tibtop-connect.com/images/87czV1yKnaf7.png https://gps.algo.tibtop-connect.com/images/LKGI0EzFwhnj.png https://gps.algo.tibtop-connect.com/images/3t1lTB7GbkEz.png https://gps.algo.tibtop-connect.com/images/THwsZD5jeb0g.png https://gps.algo.tibtop-connect.com/images/KkwQmjrtZJhh.png https://gps.algo.tibtop-connect.com/images/iLqlIfgOeiwl.png https://gps.algo.tibtop-connect.com/images/Co_cqSwaIMHR.png