开发者

iOS Saving Images to documents directory slowing down app

开发者 https://www.devze.com 2023-02-15 17:33 出处:网络
I 开发者_Python百科am currently writing an app where I allowing a user to select images from the photos app, and add them to my app.I find that when the users does this a couple times it is fine. The

I 开发者_Python百科am currently writing an app where I allowing a user to select images from the photos app, and add them to my app. I find that when the users does this a couple times it is fine. The problem comes in when they do this 5-6 times, it starts to slow the app down.

I am freeing up resources, and ran it through instruments and found no leaks. I'm just curious if there are any other things I should consider when saving images to the app this way. I just not seeing anything obvious at this point.


Try FreeImage or OpenCV library for reading/writing Images. Maybe they'll be more efficient than yours

0

精彩评论

暂无评论...
验证码 换一张
取 消