Why Android needs more RAM than IOS
As a Android developer I have had this question for a long time now. And I was never convinced by any of the answers that I got from google searches, until recently.
I saw a post with almost similar title and I wanted others to know it as well so I decide to put it on medium, why not. Even though the material is already published its always good to keep the good stuff coming in from which ever source.
Most of the applications on IOS gives very smooth animations and while the same application might not look so convincing with the kind of fluidity in its animation and movements. And the reason for this is the the use of JAVA programming language by Android apps.
So, JAVA uses a technique called garbage collection. Now garbage collection is one of the finest achievements of JAVA because it allows developers to create new objects without worrying explicitly about memory allocation and deallocation, because the garbage collector automatically reclaims memory for reuse. In simple words garbage collection recycles the memory when the application is closed or is not in use. That is the reason for the problem as garbage collectors require about four to eight times the memory that it is using in order for the job to be done quickly. If the required amount of memory is not available, things slow down. And since iOS does not relay on garbage collection, it does not show the kind of lag or less smooth movements as Android phones.
The answer was posted on Quora by a Glyn Williams, who received 2700 up-votes for his response.