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.
Mathew Brack · May 29, 2015 at 05:27 pm · 2 comments

Google No Longer Sending Calendar SMS Notifications

In a not entirely surprising move, Google announced that it's putting an end to SMS notifications for Google calendar as of June 27th. They stated earlier, "SMS notifications for Google Calendar launched before smartphones were available. Now in a world with smartphones and notifications, you can get richer, more reliable experience on your mobile device, even offline". Google Drive for Work, Google Apps for Work (paid edition), Education and Government customers will not be affected by these changes and can continue using...

XDA NEWS
Chris Gilliam · May 29, 2015 at 11:29 am · 3 comments

I/O Summary: Google Cardboard Virtual Reality

One year ago, Google introduced cardboard. Amazingly enough, that was all it took to fire up the Virtual Reality scene on Android, and what began as an open design concept exploded into thousands of apps and dozens of headsets from big and small vendors alike. Now, there are more than 1 million cardboard viewers/handsets - a Google-quoted number that might not even be accurate given the ease with which headsets can be rigged through off-the-shelf equipment. This year, cardboard returned...

XDA NEWS
Jimmy McGee · May 29, 2015 at 06:00 am · 4 comments

Android M Preview Images – XDA TV

Android M preview images are available. That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of Google's Project Tango going on sale and be sure to check out the article talking about Google's Roboto font going open source. That's not all that's covered in today's video! Jordan talks about the other videos released this week on XDA TV. XDA TV Producer TK...

XDA NEWS
Share This