Why iOS works faster than android?
I just want to understand in simple terms, how come an iPhone with very little RAM and full storage works smoother than an Android with tons of RAM and storage.
Is it something which android can't do?
Is it something which android can't do?
iOS developer here, Apple has put in lot of restrictions which although restricts developers but also makes sure developers don’t screw up.
Here are the reasons:-
1. Faster processor:- Although Qualcomm has come close but Apple processors are still very much ahead.
2. No background processes: Apart from some exceptions like playing music. iOS apps are fully suspended in background i.e they are not using any processing power. This has a downside that third party app can’t download stuff in background.
3. Framework restrictions in newer devices:- Apple watch and Apple Vision Pro apps can only be made in SwiftUI in which all the views are in struct rather than classes. Furthermore in SwiftUI, Apple has taken the freedom from developer to manage threads to itself. This is one example where Apple has prevented bad developers to mess up. Some developers think multi-threading always lead to faster performance.
4. iOS development is done in Swift and Objective-C which by design is faster than Java and Kotlin, and requires less memory to run.
Anise Gabriel
Student
7 months ago
Hi, is it worth it for me to learn IOS, when I was in college I worked majorly in the MERN stack, during my internship I worked on Spring boot, and now in my new company i am working on Flutter,
Request you to guide me
Kendall Gabriel
Stealth
7 months ago
Simple answer: The hardware and software are both designed by Apple leading to better coordination between the two. Android is unable to do this.
What about the companies that make their own processor for Android?
I'll explain in a very dumb sense:
Android is open source, and every phone brand creates their own OS wrapper over Android. So all the apps need to be compiled into something every variant of Android OS wrapper can run, which adds a lot of overhead and extra layers. iOS is just iOS, and apps don't need the extra overhead or steps.
1. Android OS has more layers as compared to iOS.
2. iOS can store app file as a machine code while Android store apk as byte code.
As Android ecosystem supports various OEMs, android app is made so that it can run on various types of processor chips. To make it possible android stores apk file in java byte code, and coverts into machine code at runtime. Also android has HAL( Hardware abstraction layer) to abstract android OS irrespective of underlying processor. All this needs more RAM and more time as compared to iOS.
Discover More
Curated from across