• Luboš Luňák's avatar
    parallel deflate compression (one stream, multiple threads) · aa44e109
    Luboš Luňák yazdı
    ZipPackageStream::saveChild() already had one threaded compression,
    but that still uses only one thread for one stream. Many documents
    contain many streams (where this is useful), but large documents
    often contain one huge content.xml, which then would be compressed
    using just one thread.
    But it is in fact possible to do deflate in parallel on the same data,
    at the cost of somewhat increased CPU usage (spread over threads).
    This is handled separately from the background thread path, as
    integrating these two approaches would probably be needlessly complex
    (since they both internally use ThreadPool, the tasks should often
    intermix and parallelize anyway).
    On my 4-core (8 HT threads) machine this reduces the compression time
    of tdf#113042 from 3s to 1s.
    
    Change-Id: Ifbc889a27966f97eb1ce2ce01c5fb0b151a1bdf8
    Reviewed-on: https://gerrit.libreoffice.org/73032
    Tested-by: Jenkins
    Reviewed-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
    aa44e109
Adı
Son kayıt (commit)
Son güncelleme
..
ContentInfo.hxx Loading commit data...
ZipPackage.cxx Loading commit data...
ZipPackageBuffer.cxx Loading commit data...
ZipPackageEntry.cxx Loading commit data...
ZipPackageFolder.cxx Loading commit data...
ZipPackageFolderEnumeration.cxx Loading commit data...
ZipPackageFolderEnumeration.hxx Loading commit data...
ZipPackageSink.cxx Loading commit data...
ZipPackageSink.hxx Loading commit data...
ZipPackageStream.cxx Loading commit data...
wrapstreamforshare.cxx Loading commit data...
wrapstreamforshare.hxx Loading commit data...
zipfileaccess.cxx Loading commit data...