[sword-devel] compession drivers

Troy A. Griffitts sword-devel@crosswire.org
Fri, 15 Dec 2000 03:58:59 -0700


A first working rev of the compression drivers are in CVS.
Everything seems to work for me.

There is a utility: mod2zmod that works against verse keyed modules.  It
can be used to make a compessed module from a regular module (Bible or
Commentary).

Here is an excerpt from a conf file for a module with compression:

[zbKJV]
DataPath=./modules/texts/ztext/zbkjv/
ModDrv=zText
BlockType=BOOK
CompressType=ZIP


Here are the stats-- efficiency and performance-- that I see on a few
compession methods...

on KJV Module:

	uncompressed	lzss/chapter	lzss/book	zip/chapter	zip/book
size	  8688K		  3852K		  3428K		  4356K		  2536K
speed	  3.903s	  9.341s	  8.647s	  4.849s	  4.767s


speed is a messure of a multi word search for "God love world" across
the entire module.


Here's the info on my laptop that I ran these on:

[scribe@charis2 zbkjv]$ cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 8
model name	: Pentium III (Coppermine)
stepping	: 1
cpu MHz		: 501.141
cache size	: 256 KB
fdiv_bug	: no
hlt_bug		: no
sep_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 3
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 pn mmx fxsr xmm
bogomips	: 999.42

[scribe@charis2 zbkjv]$ free
             total       used       free     shared    buffers    
cached
Mem:        127820     124752       3068      82972      10524     
60180
-/+ buffers/cache:      54048      73772
Swap:       143632      13672     129960
[scribe@charis2 zbkjv]$