From ed348cdf23962e086327986a5a28d2f2fc1c73b8 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 9 Aug 2013 13:56:44 +0200 Subject: [PATCH] Rejectes .gz support. Too slow. --- TODO | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 149026f6..1e418a1a 100644 --- a/TODO +++ b/TODO @@ -5,8 +5,6 @@ This is the list of TODO items for SnapRAID. - v4.1 -* Save the content file in compressed .gz format to save space. - * Support names including \r and \n for Mac. See proposed patch from Matthew - v4.x generic @@ -107,6 +105,30 @@ Rejected TODO This is a list of rejected TODO items. +* Save the content file in compressed .gz format to save space. +- Compression is too slow. Even using the very fast lzo. +$ time lzop -1 < content > content.lzo +real 1m23.014s +user 0m40.822s +sys 0m3.389s + +$ time ./gzip -1 < content > content.gz +real 1m47.463s +user 1m23.732s +sys 0m3.290s + +$ time ./gzip --huffonly < content > contentH.gz +real 1m51.607s +user 1m30.032s +sys 0m3.245s + +Similar command done with snapraid, that involves also decoding and encoding takes less time. + +$ time ./snapraid --test-skip-device --test-skip-self -v -c ./test.conf test-rewrite +real 0m59.087s +user 0m14.164s +sys 0m4.398s + * Recognizes that a file is moved from one disk to another, and if the parity data doesn't overlap, do not recompute it. - It's going to work only in RAID5 mode and only in special cases.