[root] / trunk / misc / table / src / TFileIter.cxx Repository:
ViewVC logotype

Log of /trunk/misc/table/src/TFileIter.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 41088 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 1 19:38:48 2011 UTC (3 years, 3 months ago) by pcanal
File length: 21707 byte(s)
Diff to previous 39696
In table, use TDirectory::TContext to save/restore gDirectory rather than table's own mechanism (in preparation to gFile becoming read only)

Revision 39696 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 13 21:35:34 2011 UTC (3 years, 7 months ago) by pcanal
File length: 21848 byte(s)
Diff to previous 35878
From David Dagenhart:

Implement an option to allow ROOT to use the LZMA compression
algorithm to compress data instead of the ZLIB compression algorithm.
LZMA compression typically results in smaller files, but takes more
CPU time to compress data. To use the new feature, the external XZ
package must be installed when ROOT is configured and built:

Download 5.0.3 from here http://tukaani.org/xz/
and make sure to configure with fPIC:
   ./configure CFLAGS='-fPIC'

Then the client C++ code must call routines to explicitly request LZMA
compression.

ZLIB compression is still the default.

Setting the Compression Level and Algorithm:

There are three equivalent ways to set the compression level and 
algorithm. For example, to set the compression to the LZMA algorithm
and compression level 5.

1. TFile f(filename, option, title);
   f.SetCompressionSettings(ROOT::CompressionSettings(ROOT::kLZMA, 5));

OR

2. TFile f(filename, option, title, ROOT::CompressionSettings(ROOT::kLZMA, 5));

OR

3. TFile f(filename, option, title);
   f.SetCompressionAlgorithm(ROOT::kLZMA);
   f.SetCompressionLevel(5);

These methods work for TFile, TBranch, TMessage, TSocket, and TBufferXML. 
The compression algorithm and level settings only affect compression of
data after they have been set. TFile passes its settings to its branches 
only at the time the branches are created. This can be overidden by 
explicitly setting the level and algorithm for the branch. These classes 
also have the following methods to access the algorithm and level for 
compression.

   Int_t GetCompressionAlgorithm() const;
   Int_t GetCompressionLevel() const;
   Int_t GetCompressionSettings() const;

If the compression level is set to 0, then no compression will be
done. All of the currently supported algorithms allow the level to be
set to any value from 1 to 9. The higher the level, the larger the
compression factors will be (smaller compressed data size). The
tradeoff is that for higher levels more CPU time is used for
compression and possibly more memory. The ZLIB algorithm takes less
CPU time during compression than the LZMA algorithm, but the LZMA
algorithm usually delivers higher compression factors.

The header file core/zip/inc/Compression.h declares the function
"CompressionSettings" and the enumeration for the algorithms.
Currently the following selections can be made for the algorithm:
kZLIB (1), kLZMA (2), kOldCompressionAlgo (3), and kUseGlobalSetting
(0). The last option refers to an older interface used to control the
algorithm that is maintained for backward compatibility. The following
function is defined in core/zip/inc/Bits.h and it set the global
variable.

   R__SetZipMode(int algorithm)

If the algorithm is set to kUseGlobalSetting (0), the global variable
controls the algorithm for compression operations.  This is the
default and the default value for the global variable is kZLIB.

Note that the LZMA algorithm will only be available if the LZMA
libraries from the XZ package were available when the ROOT executable
being used was configured and built. If you are building ROOT and want
LZMA then you must do something similar to the following if XZ is not
already installed on your system.

  Download XZ version 5.0.3 from http://tukaani.org/xz/
  unwind the tarball
  cd xz-5.0.3
  ./configure CFLAGS='-fPIC'
  make

ROOT was tested with version 5.0.3 of XZ.  It might work with earlier
versions and will probably work with later versions of XZ.

Then either use "make install" to put the library and headers into
/usr/local/* so the scripts building ROOT can find them or use
arguments to the ROOT configure script to point to the proper
directories containing the XZ library and headers. These are the
library and the included header (lzma.h includes other headers in the
lzma subdirectory).

  src/liblzma/.libs/liblzma.a
  src/liblzma/api/lzma.h

WARNING: Data compressed with the LZMA algorithm cannot be read by
ROOT executables that were not built with LZMA support.

Revision 35878 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 08:28:57 2010 UTC (4 years, 3 months ago) by brun
File length: 21845 byte(s)
Diff to previous 35876
Fix dereference_after_null_check. coverity CID 11866

Revision 35876 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 08:12:30 2010 UTC (4 years, 3 months ago) by brun
File length: 21837 byte(s)
Diff to previous 34913
Fix reverse_null. coverity CID 10731

Revision 34913 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 19:18:35 2010 UTC (4 years, 5 months ago) by pcanal
File length: 21708 byte(s)
Diff to previous 23777
Fix uninitialized data members (coverity)

Revision 23777 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 9 06:15:20 2008 UTC (6 years, 8 months ago) by brun
File length: 21391 byte(s)
Diff to previous 23768
Fix coding convention

Revision 23768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 8 15:59:08 2008 UTC (6 years, 8 months ago) by brun
File length: 21392 byte(s)
Diff to previous 23737
From Valeri Fine:
Fix coding conventions.

Revision 23737 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 8 05:05:14 2008 UTC (6 years, 8 months ago) by brun
File length: 21284 byte(s)
Diff to previous 23733
Fix a compiler warning and a bug.

Revision 23733 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 7 18:59:02 2008 UTC (6 years, 8 months ago) by brun
File length: 21278 byte(s)
Diff to previous 23254
From valeri fine:
- Merge with STAR local version to allow iteration of the nested TDirectory (Thanks Rene Brun for the idea)

Revision 23254 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 16 13:35:01 2008 UTC (6 years, 9 months ago) by rdm
File length: 20312 byte(s)
Diff to previous 22546
move table to misc.

Revision 22546 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 8 19:21:05 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/table/src/TFileIter.cxx
File length: 20312 byte(s)
Diff to previous 20882
other bunch of gcc 4.3 warnings removed:
-  warning: suggest a space before ; or explicit braces around empty body
   in for statement

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/table/src/TFileIter.cxx
File length: 20309 byte(s)
Diff to previous 20610
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 2 08:01:48 2007 UTC (7 years, 2 months ago) by brun
Original Path: trunk/table/src/TFileIter.cxx
File length: 20309 byte(s)
Diff to previous 19826
Fix compiler warning.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/table/src/TFileIter.cxx
File length: 20304 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/table/src/TFileIter.cxx
File length: 20355 byte(s)
Diff to previous 15119
remove :$ from tag line

Revision 15119 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 21 18:05:26 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/table/src/TFileIter.cxx
File length: 20365 byte(s)
Diff to previous 15117
Fix more coding conventions violations

Revision 15117 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 20 14:06:09 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/table/src/TFileIter.cxx
File length: 20364 byte(s)
Diff to previous 8195
Fix a VERY long list of coding conventions violations

Revision 8195 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 13 14:27:00 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/table/src/TFileIter.cxx
File length: 19956 byte(s)
Diff to previous 6666
added missing cvs "// @(#)..." ident lines.

Revision 6666 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 15:17:03 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/table/src/TFileIter.cxx
File length: 19585 byte(s)
Diff to previous 5997
From Valeri Fine. A new version of the table package.
It fixes a couple of memory leaks:
 class TTableDescriptor
 class TVolumePosition
and provides some clean up
for the TCL class interface.

Revision 5997 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 27 20:41:37 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/table/src/TFileIter.cxx
File length: 19210 byte(s)
Diff to previous 4598
New version of the Table package by Valeri Fine.
New classes TIndexTable TResponseIterator TResponseTable TTableMap

Revision 4598 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon May 27 16:27:00 2002 UTC (12 years, 8 months ago) by rdm
Original Path: trunk/table/src/TFileIter.cxx
File length: 16077 byte(s)
rename star to table.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9