Flash Player 11.3 added a new way to compress and uncompress ByteArray
: the LZMA algorithm. This is useful because LZMA typically compresses to much smaller size than the existing zlib and deflate algorithms. But how much of a speed penalty does it incur? Today’s article seeks to find just that!
Posts Tagged deflate
Flash makes it very easy to compress data- just call ByteArray.compress
. It’s just as easy to uncompress with ByteArray.uncompress
. With such convenience, it’s tempting to compress every ByteArray
you send across without a second thought. But is this really a good idea? Will compressing every packet you send over a socket slow your app to a standstill? Today’s test is designed to answer just this question. Read on for the test and results!