Facebook remains under pressure to prove that its social network will thrive as much on mobile devices as it has on desktop computers
Stung by user contempt for its sluggish iOS app, Facebook has turned away from the Web technology it once celebrated and toward native iOS code. The result is a much speedier version of its mobile app.
"Facebook 5.0 for iOS is twice as fast as the previous version when launching the app, scrolling through news feed and opening photos in feed," said Facebook product manager Mick Johnson in a blog post on Thursday.
Users have already noticed. A recent review of the app posted under the name Neil Lucia notes, "This newly rebuilt version is a great improvement and runs very smoothly, and the layout of [the] profile page has also changed, for the better!"
Facebook remains under pressure to prove that its social network will thrive as much on mobile devices as it has on desktop computers. Lack of a coherent mobile strategy has contributed to the company's stock woes and to its decision to acquire mobile photo sharing service Instagram. An enthusiastic reception for Facebook 5.0 for iOS could help the company regain its stride.
Johnson says that Facebook engineers "rebuilt the app from the ground up" to make it launch and load content faster. Much of the app is now written in native iOS code, Objective-C, primarily for the sake of speed.
"We have high hopes for HTML5 and have already begun to use it in our products," noted Facebook engineering manager David Recordon in early 2011. "We hope HTML5 will help developers everywhere address one significant engineering challenge we face daily: the need to support different platforms across the Web, desktop and mobile devices."
However, Facebook 5.0's speed gain isn't simply a matter of turning to native code. As engineer Jonathan Dann explains in a separate blog post, the revised iOS app is faster not only because there's less use of HTML5, which had been used for various modules inside of an Objective-C wrapper, but also because Facebook has stopped using Three20, an open source Objective-C library that it had been developing since the early days of the iPhone.
"The new Facebook for iOS marks our first release in years without the Three20 framework," said Dann.
In addition, Facebook's iOS app has benefited from more efficient coding. As Dann explains, this involved moving computationally intensive tasks off the main thread, to be processed in the background, so the main thread can handle touch events and other user interactions immediately. In another instance, Facebook engineers found that calculations to layout text on the app display page created a bottleneck. So they shifted to downloading new text strings and calculating their sizes for layout asynchronously while caching text frames for later display.
In any event, the new Faceook app for iOS may mark a shift away from HTML5 for certain tasks, but it's not a repudiation of the technology. In fact, the app will continue to use HTML5. "For areas within the app where we anticipate making changes more often, we will continue to utilize HTML5 code, as we can push updates server side without requiring people to download a new version of the app," explains Dann.
InformationWeek Elite 100Our data shows these innovators using digital technology in two key areas: providing better products and cutting costs. Almost half of them expect to introduce a new IT-led product this year, and 46% are using technology to make business processes more efficient.
The UC Infrastructure TrapWorries about subpar networks tanking unified communications programs could be valid: Thirty-one percent of respondents have rolled capabilities out to less than 10% of users vs. 21% delivering UC to 76% or more. Is low uptake a result of strained infrastructures delivering poor performance?
InformationWeek Must Reads Oct. 21, 2014InformationWeek's new Must Reads is a compendium of our best recent coverage of digital strategy. Learn why you should learn to embrace DevOps, how to avoid roadblocks for digital projects, what the five steps to API management are, and more.