essentially on the iPhone 4S, you start getting warned around 40MB and you get killed around 213MB. On the iPad 3, you get warned around 400MB and you get killed around 550MB. Of course, these are just my numbers–if your users are listening to music or running things in the background, you may have considerably less memory than you do in my results, but this is a start. This seems like a lot (213mb should be enough for everyone, right?) but as a practical matter it isn’t. For example, the iPhone 4S snaps photos at 3264×2448 resolution. That’s over 30 megabytes of bitmap data per photo. That’s a warning for having just two photos in memory and you get killed for having 7 photos in RAM. Oh, you were going to write a for loop that iterated over an album? Killed.

http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/

#garbage-collection #garbage #programming #memory #speed #performance #mobile #research #ios #iphone #ipad #memory-management #memory

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)