unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Adding --lzma option to make-dist
@ 2008-01-13  8:48 Sven Joachim
  0 siblings, 0 replies; only message in thread
From: Sven Joachim @ 2008-01-13  8:48 UTC (permalink / raw)
  To: emacs-devel

Inspired by the latest change that added the --bzip2 option to
make-dist, I did the same for --lzma and ran a short benchmark to
compare the results with the various compressors.  Here is a summary of
the results for `make-dist --snapshot' in the Emacs trunk on my
machine¹:

Option   creation time (s)  tarball size (B)  unpacking time (s)
-------  -----------------  ---------------   ------------------
(none)        30.45           39,821,789           3.49
--bzip2       84.28           31,947,657          26.34
--lzma       338.23           26,797,729           7.71

It seems that the lzma format would be a very good candidate for
distribution tarballs, if only it were more widespread; information and
downloads are available at http://www.7-zip.org/sdk.html.

Diff and Changelog entry:

--8<---------------cut here---------------start------------->8---
--- make-dist	5 Jan 2008 13:26:33 -0000	1.239
+++ make-dist	13 Jan 2008 08:35:11 -0000
@@ -86,6 +86,11 @@
       default_gzip="bzip2"
     ;;
 
+    ## Same with lzma.
+    "--lzma")
+      default_gzip="lzma"
+    ;;
+
     "--snapshot")
       clean_up=yes
       make_tar=yes
@@ -99,6 +104,7 @@
       echo "  --bzip2		use bzip2 instead of gzip"
       echo "  --clean-up	delete staging directories when done"
       echo "  --compress	use compress instead of gzip"
+      echo "  --lzma		use lzma instead of gzip"
       echo "  --newer=TIME	don't include files older than TIME"
       echo "  --no-check	don't check for bad file names etc."
       echo "  --no-update	don't recompile or do analogous things"
@@ -750,6 +756,7 @@
   case "${default_gzip}" in
     bzip2)      gzip_extension=.bz2 ;;
     compress* ) gzip_extension=.Z ;;
+    lzma)      gzip_extension=.lzma ;;
     * )         gzip_extension=.gz ;;
   esac
   echo "Creating tar file"
--8<---------------cut here---------------end--------------->8---

2008-01-13  Sven Joachim  <svenjoac@gmx.de>

	* make-dist: Add --lzma.


¹ Athlon XP 2400+ (2Ghz), 1 GB RAM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-13  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-13  8:48 Adding --lzma option to make-dist Sven Joachim

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).