|
[Rivet] AIDA branch closed (gzip next...)James Monk jmonk at cern.chFri May 23 13:16:01 BST 2014
In fact there is a native python gzip module, available since Python 1.5 (so even us mac users with our hoary old Python 2.7 can use it ;) . There’s plenty of whinging online that its performance isn’t up to standard gunzip or a c++ implementation though… James On 23 May 2014, at 14:04, James Monk <jmonk at cern.ch> wrote: > That would actually be a nice alternative - modify the rivet python script to pipe the input through gunzip if it detects a gzipped file. Then we don’t need the zlib dependency. I presume performance would be more-or-less identical - does anyone know for sure? > > James > > On 23 May 2014, at 09:35, Leif Lönnblad <leif.lonnblad at thep.lu.se> wrote: > >> On 2014-05-23 07:24, David Grellscheid wrote: >>> I agree with that. A good behaviour for Rivet would be to >>> >>> - check if zlib is available >>> - if yes, always compile it in >>> - => transparently understand zipped and non-zipped HepMC files >>> - if zlib not compiled in and we encounter a gzip file (check first 4 >>> bytes are \x1f \x8b), output a useful message. >> >> Is there any unix distribution that doesn't come with the gzip executable by default? In ThePEG I have a fall-back that pipes a file through gzip in case zlib is not available. It doesn't work if the input is already sent through a pipe to rivet, but in that case there's not much point in zipping... >> >> Cheers, >> Leif >> >> >> >> _______________________________________________ >> Rivet mailing list >> Rivet at projects.hepforge.org >> https://www.hepforge.org/lists/listinfo/rivet > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet
More information about the Rivet mailing list |