From: Jim Meyering <jim@meyering.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>,
Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
Subject: Re: bug#3269: 23.0.93; C-mode text highlighting
Date: Wed, 20 May 2009 12:31:45 +0200 [thread overview]
Message-ID: <87eiukm5f2.fsf@meyering.net> (raw)
In-Reply-To: <jwvk54d262g.fsf-monnier+emacsbugreports@gnu.org> (Stefan Monnier's message of "Mon, 18 May 2009 22:24:02 -0400")
Hi,
Following up to this message,
http://thread.gmane.org/gmane.emacs.devel/110963
I've included the trivially-rebased patch below, with a fixed log entry.
Also, have you considered offering XZ-compressed tarballs?
The decrease in size is striking:
34M emacs-23.0.93.tar.bz2
26M emacs-23.0.93.tar.xz
In addition, unpacking with xz takes about 1/3 the time, here:
$ env time tar xf ../.new/emacs-23.0.93.tar.xz
2.55user 0.83system 0:03.40elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+309000outputs (0major+17044minor)pagefaults 0swaps
$ rm -rf emacs-23.0.93
$ env time tar xf ../emacs-23.0.93.tar.bz2
5.36user 0.83system 0:09.64elapsed 64%CPU (0avgtext+0avgdata 0maxresident)k
67912inputs+309000outputs (0major+1448minor)pagefaults 0swaps
I admit that when I first compressed with xz, the resulting size was
27MiB, but when I reordered files in the tarball (placing like suffixes
together), xz was able to compress to one full MiB smaller.
From faa98d33239195f42c732f8886f1db378846553c Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Mon, 18 May 2009 11:33:03 +0200
Subject: [PATCH] automatically handle .xz suffix (XZ-compressed files), too
* jka-cmpr-hook.el (jka-compr-compression-info-list): Add xz.
XZ is the successor to LZMA: <http://tukaani.org/xz/>
---
lisp/jka-cmpr-hook.el | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lisp/jka-cmpr-hook.el b/lisp/jka-cmpr-hook.el
index 96e9513..fa2fd40 100644
--- a/lisp/jka-cmpr-hook.el
+++ b/lisp/jka-cmpr-hook.el
@@ -219,6 +219,10 @@ options through Custom does this automatically."
"compressing" "gzip" ("-c" "-q")
"uncompressing" "gzip" ("-c" "-q" "-d")
t t "\037\213"]
+ ["\\.xz\\(~\\|\\.~[0-9]+~\\)?\\'"
+ "XZ compressing" "xz" ("-c" "-q")
+ "XZ uncompressing" "xz" ("-c" "-q" "-d")
+ t t "\3757zXZ\0"]
;; dzip is gzip with random access. Its compression program can't
;; read/write stdin/out, so .dz files can only be viewed without
;; saving, having their contents decompressed with gzip.
--
1.6.3.1.149.gbc70c
prev parent reply other threads:[~2009-05-20 10:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <878wl1h5fw.fsf@ancient.thomaschristensen.org>
[not found] ` <20090514213924.GB2413@muc.de>
2009-05-18 15:06 ` bug#3269: 23.0.93; C-mode text highlighting Alan Mackenzie
2009-05-18 16:41 ` Chong Yidong
2009-05-18 21:16 ` Alan Mackenzie
2009-05-18 19:53 ` Stefan Monnier
2009-05-18 21:30 ` Alan Mackenzie
2009-05-19 2:24 ` Stefan Monnier
2009-05-19 10:26 ` Alan Mackenzie
2009-05-19 14:36 ` Stefan Monnier
2009-05-19 22:40 ` Alan Mackenzie
2009-05-20 10:31 ` Jim Meyering [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eiukm5f2.fsf@meyering.net \
--to=jim@meyering.net \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).