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 compression
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!
One of the new features in Flash Player 11 is a native JSON encoder/decoder class. In the Serialize Anything article, I neglected to add JSON as an option for serializing and deserializing arbitrary objects. In today’s followup we’ll take a look at the performance of the native JSON class and compare it to ByteArray.readObject/writeObject
and XML.