VirtualBox

Ignore:
Timestamp:
Nov 26, 2020 3:12:03 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141540
Message:

testmanager/partial-db-dump.py: LZMA is too slow, replaced the option with a --store so the backup program can use zx to compress it more efficiently. bugref:9788

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/db/partial-db-dump.py

    r86993 r86994  
    7676        oParser.add_option('--load-dump-into-database', dest = 'fLoadDumpIntoDatabase', action = 'store_true',
    7777                           default = False, help = 'For loading instead of dumping.');
    78         oParser.add_option('--lmza', dest = 'fLmza', action = 'store_true',
    79                            default = False, help = 'Use LMZA instead of Deflate compression.');
     78        oParser.add_option('--store', dest = 'fStore', action = 'store_true',
     79                           default = False, help = 'Do not compress the zip file.');
    8080
    8181        (self.oConfig, _) = oParser.parse_args();
     
    143143
    144144        enmCompression = zipfile.ZIP_DEFLATED;
    145         if self.oConfig.fLmza:
    146             enmCompression = getattr(zipfile, 'ZIP_LZMA', zipfile.ZIP_DEFLATED);
     145        if self.oConfig.fStore:
     146            enmCompression = zipfile.ZIP_STORED;
    147147        oZipFile = zipfile.ZipFile(self.oConfig.sFilename, 'w', enmCompression);
    148148
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette