I mean, in iOS world, we don’t believe in garbage collectors, and we think the Android guys are nuts. I suspect that the Android guys think the iOS guys are nuts for manual memory management. But you know what the two, cutthroat opposition camps can agree about? The JavaScript folks are really nuts.
There is absolutely zero chance that you can write reasonable mobile code without worrying about what is going on in system memory, in some capacity. None.
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
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
In particular, when garbage collection has five times as much memory as required, its runtime performance matches or slightly exceeds that of explicit memory management. However, garbage collection’s performance degrades substantially when it must use smaller heaps. With three times as much memory, it runs 17% slower on average, and with twice as much memory, it runs 70% slower.
http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/
#garbage-collection #garbage #programming #memory #speed #performance #mobile #research