From: Ron J. <ron...@co...> - 2012-10-02 12:11:57
|
On 10/02/2012 06:52 AM, Benny Malengier wrote: > 2012/10/2 Ron Johnson <ron...@co...> > >> Since JPG files and other media formats can't be compressed well by gzip, >> why not just compress the internal .gramps xml file then tar that >> compressed >> file with the already-compressed images? Seems like that would be more >> efficient: compress what can be compressed, but don't compress what can't. >> > > Perhaps more efficient, but more complex code. The code now just uses > python routines, in your suggestion we would need to use mime-types or > extensions to decide what to compress. > I don't think the overhead is such that this is a real problem. > ?? Just don't compress *any* media objects. That way, Gramps is still only using the built-in tar and gzip routines. -- If adults of legally sound mind must be told what foods they are not allowed to buy, then those people are not competent to choose (i.e. vote for) their own leaders. |