The Superpack data compression method from Facebook reduces the size of Android apps by 20%

The Superpack data compression method from Facebook reduces the size of Android apps by 20%

In a lengthy post on the Facebook Engineering blog today, Facebook software engineer Sapan Bhatia talks about the unique challenge of managing application size. He explains that Facebook’s developers are constantly adding new bits of code to the company’s mobile apps, including the Facebook app, Messenger, WhatsApp and Instagram.

Facebook Inc.’s software team has spent the last two years working on a way to compress application code with a view to keeping app sizes more manageable, ultimately coming up with a new technique called Superpack.

“Every day, developers check in large volumes of code, and each line of code translates into additional bits in the apps that people ultimately download onto their phones,” he said. “Left unchecked, this added code would make the app bigger and bigger until eventually the time it takes to download would become unacceptable.”

Facebook’s app developers already employ a bunch of data compression techniques, but the company said these methods cannot keep up with the rate at which it adds new features and updates.

So for the last two years, Facebook’s team has been working on the Superpack technique, which it claims has been able to achieve “significantly better” compression ratios than existing tools.

According to Bhatia, Superpack’s strength lies in its ability to compress specific types of code such as machine code and bytecode as well as some kinds of structured data. He explained that the basic underlying approach to Superpack is based on an insight in Kolmogorov’s algorithmic measure of complexity, which defines the information content of a piece of data as the length of the shortest program that can generate that data. What that means is that it’s possible to compress data by representing it as a program that generates that data, as opposed to compressing the information itself.

“When that data is code to begin with then it can be transformed into one with a smaller compressed representation,” he wrote. “A program that generates Fibonacci numbers coupled with a list of indices is a highly compressed representation of a file containing such numbers.”

He added that the idea of reducing Kolmogorov complexity is not a new one in the area of data compression. What’s new is that Superpack employs a combination of compiler methods with modern compression techniques to achieve that goal.

Bhatia said Facebook has employed Superpack to put a check on developer-induced app growth in the past couple of years and actually managed to reduce the size of its Android apps. They are now “substantially smaller in comparison to regular Android APK compression,” Bhatia wrote, with the average app size reduction amounting to about 20%. The main Facebook app on Android, for example, has actually been reduced by more than 40% using Superpack, while Messenger has achieved a reduction of over 30%. For reasons that were not discussed, the technique appears to have been less successful with WhatsApp.

The News Highlights

  • The Superpack data compression method from Facebook reduces the size of Android apps by 20%
  • Check the latest update on Security news
  • .

Disclaimer: If you need to edit or update this news from compsmag then kindly contact us Learn more

For Latest News Follow us on Google News


Latest Headlines
  • Show all
  • Trending News
  • Popular By week
Indian Farmers Renew Protests, Defying Modi’s Government
Indian Farmers Renew Protests, Defying Modi’s Government
“The enthusiasm we had on the first day, it is much stronger and bigger now,” said Manjit Singh, a 45-year-old farmer and protester. Mohini Kaur, a ...
iPhone 13 upgrades suck — why you should wait for the iPhone 14
iPhone 14 is reportedly a ‘full redesign’
Expected to arrive sometime late 2022, the iPhone 14 is now believed to feature a notch-less design with a simple hole-punch front camera. Reports are also ...
Hidden Contracts, Smoke and Mirrors Keep Lights Off in Iraq
Hidden Contracts, Smoke and Mirrors Keep Lights Off in Iraq
In this country, if you don’t have these contacts, “your situation will be like ours,” Abu Ammar says. In Iraq, electricity is a potent symbol of endemic ...
Kuo: Redesigned MacBook Air With Apple Silicon to Enter Mass Production in Third Quarter of 2022
Kuo: Redesigned MacBook Air With Apple Silicon to Enter Mass Production in Third Quarter of 2022
Kuo in a note to investors on Monday predicts Apple’s next-generation MacBook Air to enter mass production late in the second quarter or early in the third ...
By Backing UK-based Ticketing App, SoftBank places bet on live music revival
By Backing UK-based Ticketing App, SoftBank places bet on live music revival
London-based Dice was launched in 2014 by music industry veteran Phil Hutcheon. Frustration By high fees charged by Ticketmaster, major ticketing sites, and ...
Mud nanobodies can offer new treatment
Mud nanobodies can offer new treatment
The authors of the recent study investigated the nanobodies of a llama named Fifi. This targeted attachment makes nanobodies ideally suited to many forms of ...
Aldi says deliveries normal althrough lorry driver scarcity
Aldi says deliveries normal althrough lorry driver scarcity
Due to a chronic shortage of heavy goods vehicle (HGV) lorry drivers, there have been dire warnings about food shortages and empty shelves. The boss of ...
The beta version of Halo Infinite includes a new map called “Behemoth,” as well as vehicles and other features
The beta version of Halo Infinite includes a new map called “Behemoth,” as well as vehicles and other features
For the third (and final) day of the first week. 343 Industries has added a brand-new map to the Halo Infinite playlist. The second Halo Infinite technical ...
New Cooking Mobile Game, Chef Squad, is Now Available on Android
New Cooking Mobile Game, Chef Squad, is Now Available on Android
The developers have also promised players that Chef Squad will provide them with the same pleasure as cooking in real life. Chef Squad is a brand new ...
How and When Germany Will Erect a New Government
How and When Germany Will Erect a New Government
WHAT HAPPENS NEXT? Germany’s voters have delivered their verdict. Now it’s up to party leaders to thrash out who will succeed Chancellor Angela Merkel after ...
Show next
Compsmag - Latest News from tech, business and health
Logo