Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for lzma/xz to CUPS file APIs #3369

Closed
michaelrsweet opened this issue Oct 8, 2009 · 6 comments
Closed

Add support for lzma/xz to CUPS file APIs #3369

michaelrsweet opened this issue Oct 8, 2009 · 6 comments
Labels
enhancement New feature or request wontfix This will not be worked on
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

michaelrsweet commented Oct 8, 2009

Version: -feature
CUPS.org User: jerome.bouat

On my Ubuntu karmic Linux distribution, the /usr/share/ppd directory uses a lot of disk space.

All the ppd files are currently compressed by using gzip.

I think that using lzma would decrease the used disk space as well as improve the decompression speed.

Below is a comparaison for the file /usr/share/ppd/openprinting/KONICA_MINOLTA/KO1050UX.ppd.gz:

j@j-desktop:$ du KO1050UX.ppd*
256 KO1050UX.ppd
24 KO1050UX.ppd.gz
16 KO1050UX.ppd.lzma
j@j-desktop:
$ time { for i in {0..999} ; do unlzma -c KO1050UX.ppd.lzma >/dev/null ; done }

real 0m18.765s
user 0m7.060s
sys 0m11.560s
j@j-desktop:~$ time { for i in {0..999} ; do gunzip -c KO1050UX.ppd.gz >/dev/null ; done }

real 0m23.183s
user 0m6.840s
sys 0m16.170s

j@j-desktop:~$

I posted a feature request to my Linux distribution here:
https://bugs.launchpad.net/ubuntu/+source/foomatic-db/+bug/446245

Unfortunately I was told that those ppd files couldn't be compressed with lzma because cups was able to read only the gzip compression format.

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Oct 9, 2009

CUPS.org User: mike

This is an interesting idea, but don't expect this to be implemented any time soon. Among other things we'll need to integrate support for this into the CUPS file APIs and be able to do auto-detection of the compression format when reading.

LZMA as a format has also not been standardized like GZIP/Flate, so we'd want to make sure that issue is covered before we adopt it.

Link to public SDK:

http://www.7-zip.org/sdk.html

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Oct 9, 2009

CUPS.org User: mike

Also XZ Tools (replacement for LZMA Tools):

http://tukaani.org/xz/

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Oct 12, 2009

CUPS.org User: jerome.bouat

tar is supporting lzma with a --lzma option. I think this is a kind of standardization.

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Jan 12, 2012

CUPS.org User: mike

Sorry, we have decided this issue will not be addressed in a CUPS release.

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Mar 6, 2012

CUPS.org User: mike

Reopening this based on our investigations into STR #3772. Not for CUPS 1.6, but perhaps a later release.

The goal will be to add support for LZMA/XZ to the CUPS file APIs so that we can use this for all files, not just PPDs and archives of PPDs.

@michaelrsweet
Copy link
Collaborator Author

michaelrsweet commented Mar 31, 2014

CUPS.org User: mike

Sorry, we have decided this issue will not be addressed in a CUPS release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant