Tomek Kondrat · May 18, 2014 at 03:00 pm

Potentially Speed up Android with New Compiler Flags

Beginning back in 2007, Android has evolved into quite a mature project. You can learn more about its history by checking out these two articles. Back in 2007, devices weren’t anywhere near as powerful as they are now. They were single core, and had only a few megabytes of RAM. Now it’s 2014, and we are on the verge of seeing the first 64-bit Android devices.

Despite the leaps and bounds that have been made in hardware capabilities, the Android build process has not really been much optimized since then. It involves using GCC 4.7 when 4.8 is available, and some outdated flags. And interestingly, compiling a kernel uses a different sets of flags than compiling the rest of the ROM.

XDA Recognized Contributor JustArchi released a commit, which according to developer, should increase the speed of AOSP-derived Android builds to upwards of 6x current speed. The commit enables a set of flags that are thoughtfully described in the original thread. But before you get too excited and cherry-pick this commit for your own builds, keep in mind that further testing in a wide variety of test scenarios needs to take place before these claims can be validated. Furthermore, you may also find that these flags will result in unexpected issues, as Android has been defaulting to a certain set of flags for quite some time.

You can find the commit and description in the original thread. Have you tried changing these or other flags while compiling? If you end up trying this in your builds, we’re eager to hear your experiences.

 


_________
Want something on the XDA Portal? Send us a tip!
TAGS:

Tomek Kondrat

eagleeyetom is an editor on XDA-Developers, the largest community for Android users. Tomek is the only Polish moderator on XDA Developers. He graduated from the University of Warmia and Mazury in Olsztyn with a degree in journalism and public communication in 2013. He's a big fan of football (not hand egg), post rock and cooking. A total addict of mobile technology, especially Android. Currently flashes dozens of custom ROMs on his OPO. View eagleeyetom's posts and articles here.
Mario Tomás Serrafero · Apr 25, 2015 at 11:00 am · 1 comment

XDA Picks: Best Apps of the Week (Apr 17 – 24)

Apps are at the front and center of any smartphone experience, and with over a million apps on the Google Play Store and new apps being submitted to our forums every day, staying up to date on the latest apps and games can be a hassle. At XDA, we don’t discriminate apps - if it’s interesting, innovative, original or useful, we mention them. The XDA Portal Team loves apps too, and we usually share and discuss the latest app releases...

XDA NEWS
GermainZ · Apr 25, 2015 at 10:24 am · 6 comments

Glimpse Notifications: Easier Lockscreen Notifications

Lollipop brought a revamp to the lockscreen, taking away custom widgets but showing your notifications instead. If you're a fan of that, you might want an easier way to check your notifications as they come in, without losing your current lockscreen. Glimpse Notifications by XDA Senior Member xrad offers just that. You'd normally have to turn your screen on manually to see your notifications. Instead, Glimpse Notifications will do it for you when a notification comes in. That doesn't mean...

XDA NEWS
Emil Kako · Apr 24, 2015 at 03:11 pm · 4 comments

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we're starting to see a plethora of beautiful new apps on the Play Store. But which ones are the best? Let us know what you think the best looking apps on Android are and why.

DISCUSS
Share This