2008/9/15 Rob Landley <rob@landley.net>:[...] Apologies if I'm sidetracking the discussion, but I'd like to coin a remark. For kernel/ramfsimage etc the best choice is the one that has the fastest decompression (info on tukaani.org says gzip). Rationale: as it uncompresses faster the system will boot faster. Of course this only holds if the background memory can hold that image. For disk based systems, I assume this is not a problem at all, but for embedded systems with all software in flash a higher compression ration (e.g. lzma) can just make the difference between fit and not fit (so in those cases lzma could just make your day). Side note: although I think the conclusion at the tukaani website holds, the data themselves are questionable. I guess this is done on the internal hard disk of the laptop (this is not specified). It would be better to do this on a ramfs to avoid effects from data still being in the buffer cache (or not yet it). Also the actual time in the tests is spent on three things: read from disk, decompress, write to disk. (i'll only talk about decompress here, guess an additional second or so to compress is not that important). You can argue that the latter is a constant as the same amount of data is written, but the first one (the read time) depends on the actual amount of data and the transfer rate of the device. In case of slower devices it could well be that higher compression yields a smaller image. If the reduction in read time is bigger than the additional cost for the slower decompress, the net effect still would be a win when it comes to boot time. and finally: I've seen substantial timing differences when comparing algorithms on different architectures (arm/mips/x86), so processor might also make a difference on what is best. (and so will the compiler). FM --
