简体   繁体   中英

Maximum amount of memory that can be leaked for iOS app

I was wondering what is the maximum amount of leaks an iOS app can have - I'm currently testing my app with Instruments, and have a few leaks here and there but the app doesn't crash. Is 1MB acceptable?

As @Romain commented,

No leaks are acceptable!

Just like if you found out the nuclear reactor beside your house was leaking radioactive material (but the owners assured you it was fine), it better get fixed!

If you absolutely must have leaks, Ie they only happen on startup and you can't feasibly fix them, then 3.12KB should be fine.

If, on the other hand, it is a 3.12KB leak every ten minutes , then it must be fixed.

Imagine someone using your app for several hours start straight - or multitasking and never force killing your app. Eventually that 3.12KB is going to turn into 3.12GB - and that is never acceptable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM