[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua bytecode doesn't compress well (with LZMA)
- From: Matt Campbell <mattcampbell@...>
- Date: Mon, 30 Nov 2009 10:51:57 -0600
I've noticed that Lua 5.1 bytecode, compiled with the -s option, doesn't
compress as well as the equivalent Lua source code. I have a Lua source
tree that's about 1.4 MB uncompressed, and when I compress it with 7-Zip
using LZMA and solid compression, the archive's file size is 183,262
bytes. But when I compress the equivalent bytecode, that archive's file
size is 265,289 bytes. For what it's worth, I'm doing the compile on an
x86 machine, so integers are 32-bit, little-endian. Can anyone explain
these counter-intuitive results? Thanks in advance.
Matt