Superpack: Pushing the limits of compression in Facebook’s mobile apps

#103 · ✸ 88 · 💬 20 · 8 days ago · engineering.fb.com · detaro
So we developed a technique called Superpack, which combines compiler analysis with data compression to uncover size optimizations beyond the capability of traditional compression tools. Superpack pushes the limits of compression to achieve significantly better compression ratios than existing compression tools. Superpack's compression has helped reduce the size of our fleet of Android apps, which are substantially smaller in comparison to regular Android APK compression, with average savings of over 20 percent compared with Android's default Zip compression. Compression is a mature field, and the techniques we've developed crosscut the entire compression spectrum, from data comprehension and Lempel-Ziv parsing to statistical coding. Abstracting out the mechanism used to do the compression work as a module gives us a selection of a number of trade-offs between compression ratio and decompression speed. Superpack combines compiler and data compression techniques to increase the density of packed data in a way that is especially applicable to code such as Dex bytecode and ARM machine code. Superpack started out as a tool to cut mobile app size, but our success in improving the compression ratio of a variety of data types has led us to target other use cases of asymmetric compression.
Superpack: Pushing the limits of compression in Facebook’s mobile apps



Archive | Send Feedback | WebAssembly Version (beta)