How did Facebook speed up it's new app
Thursday, December 13, 2012
Richard Harris |
Facebook released an update to it's Android mobile app and everyone is taking notice of how much faster it is. So how'd they do that?
Read more: http://www.infoworld.com/t/mobile-development/face...
- They completely wrote the app largely in native Android code. The previous version was a hybrid of native and web code. They also reduced garbage collection while using the app which helped it's overall memory usage.
- The developer team also wrote a custom event bus to handle on screen events, and they optimized it to work more smoothly while a user is scrolling.
- The handle loading images onto the device by loading them into the native heap rather than the java heap.
- They wrote a customized listview that helps with the overall load of data that gets loaded while users scroll.
Read more: http://www.infoworld.com/t/mobile-development/face...
Become a subscriber of App Developer Magazine for just $5.99 a month and take advantage of all these perks.
MEMBERS GET ACCESS TO
- - Exclusive content from leaders in the industry
- - Q&A articles from industry leaders
- - Tips and tricks from the most successful developers weekly
- - Monthly issues, including all 90+ back-issues since 2012
- - Event discounts and early-bird signups
- - Gain insight from top achievers in the app store
- - Learn what tools to use, what SDK's to use, and more
Subscribe here