Skip Menu |

This queue is for tickets about the Compress-LZMA-External CPAN distribution.

Report information
The Basics
Id: 41498
Status: resolved
Priority: 0/
Queue: Compress-LZMA-External

People
Owner: Nobody in particular
Requestors: brianski [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 0.31
  • 0.32
  • 0.33
  • 0.34
  • 0.35
Fixed in: (no value)



Compress-LZMA-External should allow for optional extra arguments passed to the lzma command. For example, in some circumstances I might want the quickest possible compression (-1) and in others I want the best (-9).
You'd like to use LZMA without compressing well? Anyway, this module is a simple interface to the command-line program, so I'm rejecting this as a bug, sorry. (Unless you can convince me otherwise, say with a patch ;-) Regards, Leon
Subject: lzma -9 is not the same lzma w/o arguments
From: skibrianski [...] gmail.com
On Tue Dec 08 15:37:20 2009, LBROCARD wrote: Show quoted text
> You'd like to use LZMA without compressing well?
... but lzma is not as high compression as lzma -9. I'd like to use LZMA to compress the best it possibly can, and the default settings are not the same as lzma -9. ski@portege:~/mysrc/skixp$ tar cpf Compress-LZMA-External.tar Compress-LZMA-External/ ski@portege:~/mysrc/skixp$ ls -l Compress-LZMA-External.tar -rw-r--r-- 1 ski ski 61440 2009-12-08 20:41 Compress-LZMA-External.tar ski@portege:~/mysrc/skixp$ /usr/bin/time lzma Compress-LZMA-External.tar 0.05user 0.03system 0:00.09elapsed 88%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+24outputs (0major+4674minor)pagefaults 0swaps ski@portege:~/mysrc/skixp$ ls -l Compress-LZMA-External.tar.lzma -rw-r--r-- 1 ski ski 9873 2009-12-08 20:41 Compress-LZMA-External.tar.lzma ski@portege:~/mysrc/skixp$ unlzma Compress-LZMA-External.tar.lzma ski@portege:~/mysrc/skixp$ /usr/bin/time lzma -9 Compress-LZMA-External.tar 0.08user 0.11system 0:00.21elapsed 89%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+24outputs (0major+16962minor)pagefaults 0swaps ski@portege:~/mysrc/skixp$ ls -l Compress-LZMA-External.tar.lzma -rw-r--r-- 1 ski ski 9844 2009-12-08 20:41 Compress-LZMA-External.tar.lzma Show quoted text
> Anyway, this module is a simple interface to the command-line program, > so I'm rejecting this as a bug, sorry. (Unless you can convince me > otherwise, say with a patch ;-)
It's a feature request. I would say that at the least lzma -9 should be the default.
You talk a lot of sense, I've just released Compress-LZMA-External-0.36.tar.gz to CPAN which includes compress_fast and compress_best methods.

Thanks! Leon