<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
Using the danaevio plugin, which writes dana objects to evio files, I
compared hddm and evio file sizes w/ and w/o gzip.&nbsp; I used two files
generated by David L, 100 events each of smeared single pi and
multi-track events.&nbsp; The DANA objects written out in evio are basically
containers for the hddm data read in.<br>
<br>
<u>No gzip</u><tt><br>
<br>
&nbsp; single pi:&nbsp;&nbsp; 2.9M evio &nbsp;&nbsp; 3.1M hddm<br>
&nbsp; multi trk:&nbsp;&nbsp; 23M&nbsp; evio&nbsp;&nbsp;&nbsp;&nbsp; 24M hddm<br>
</tt><br>
The ratio of file sizes is:<br>
<br>
<tt>&nbsp; single pi:&nbsp;&nbsp;&nbsp; 1.07&nbsp; hddm/evio<br>
&nbsp; multi tri:&nbsp;&nbsp;&nbsp; 1.04&nbsp; hddm/evio</tt><br>
<br>
This is not surprising as for the most part the same bytes are written
out, but in different order.&nbsp; <br>
<br>
<br>
<u>With gzip (default flags)</u><br>
<br>
<tt>&nbsp; single pi: &nbsp;&nbsp; 967k evio&nbsp;&nbsp;&nbsp;&nbsp; 1.4M hddm<br>
&nbsp; multi tri:&nbsp;&nbsp;&nbsp; 6.6M evio&nbsp;&nbsp;&nbsp;&nbsp; 9.8M hddm<br>
</tt><br>
This gives gzip compression ratios:<br>
<br>
<tt>&nbsp; single pi:&nbsp;&nbsp; 3.0 evio&nbsp;&nbsp;&nbsp;&nbsp; 2.2 hddm<br>
&nbsp; multi trk:&nbsp;&nbsp; 3.5 evio&nbsp;&nbsp;&nbsp;&nbsp; 2.4 hddm<br>
</tt><br>
The ratio of gzipped file sizes is:<br>
<br>
<tt>&nbsp; single pi:&nbsp;&nbsp;&nbsp;&nbsp; 1.45 hddm/evio<br>
&nbsp; multi trk:&nbsp;&nbsp;&nbsp;&nbsp; 1.48 hddm/evio</tt><br>
<br>
<br>
Note that evio files compress better.&nbsp; I speculate this is because data
is grouped differently in the two formats.&nbsp; In evio files data for all
tracks for a particular aspect are all grouped together, e.g. all track
id's are sequential, all track vertex x values are sequential, etc.&nbsp;
Thus it is more likely there are long runs of the same or similar
numbers in evio files, allowing gzip to compress more effectively.<br>
<br>
Also note that the evio package includes auto-gunzip on input, and I am
about to add an auto-gzip option for output.<br>
<br>
<pre class="moz-signature" cols="90">

                                Sincerely,
                                        Elliott
 

================================================================================


 Those raised in a morally relative or neutral environment will hold
                    no truths to be self-evident.
                                   

Elliott Wolin
Staff Physicist, Jefferson Lab
12000 Jefferson Ave
Suite 8 MS 12A1
Newport News, VA 23606
757-269-7365

================================================================================
</pre>
</body>
</html>