[TYPO3-core] RFC #5045, #5077, #8649: Import/Export requires lot of memory

Martin Kutschker masi-no at spam-typo3.org
Fri Jul 25 12:06:32 CEST 2008


Bernhard Kraft schrieb:
> Martin Kutschker schrieb:
> 
>> Because it makes me wait longer. And I would want that feature for any
>> archiver: don't compress files that match a certain pattern. Why bother
>> compressing already compressed files?
> 
> Because it's hard to tell if a file is compressed.
> 
> For example not all PNGs need to be compressed.

Who uses this in real life?

> You could have a tar.gz archive having
> set the compression level to 0 which just creates a tar wrapped into a
> gz container but not
> doing any compression (probably just deflate) ...

I could, but why do use gzip at all (.tgz), if I could simply tar it.
(.tar).

>> Do you think my scheme would be so hard to implement? I guessed it would
>> be rather easy to modify your currents scheme so that it arranges the
>> files in a certain order.
> 
> How should I distingush between compressed and not compressed files - I
> think it is not worth the time.

Maybe, but I certainly wouldn't dig into content sniffing. Just look for
certain extensions. This will be work with 99.9% of all cases.

Masi


More information about the TYPO3-team-core mailing list