"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: reuse deltas while packing
To:
gameoftrees@openbsd.org
Date:
Thu, 10 Feb 2022 00:35:47 +0100

Download raw body.

Thread
  • Thomas Adam:

    reuse deltas while packing

  • Stefan Sperling:
    
    > With zero pack files you do not have any deltas yet, so no deltas
    > can be reused.
    > 
    > Try it again with 'gotadmin pack -a' and with a large pack file
    > already present in the repository. Then delta-reuse should kick in.
    
    Oookay.  I built myself this OpenBSD src.git:
    
    $ gotadmin info
    repository: /usr/obj/test1.git
    pack files: 1
    packed objects: 1182027
    packed total size: 412M
    loose objects: 895063
    loose total size: 3.3G
    
    $ time gotadmin pack -a         # old code
    packing 2 references; 2077090 objects; deltify: 100%; writing pack:    2.5G 100%
    Wrote 0c121f951fbfa7b4acdb1c1cd1fd00ef6c1090d0.pack
       2.5G packed; indexing 100%; resolving deltas 100%
    Indexed 0c121f951fbfa7b4acdb1c1cd1fd00ef6c1090d0.pack
       69m34.22s real    56m29.16s user    14m16.41s system
    
    $ time gotadmin pack -a         # with delta reuse
    packing 2 references; 2077090 objects; deltify: 100%; writing pack:    1.5G 100%
    Wrote 982d645a985bd89f3850cbd2b6f4a22055ef9aa6.pack
       1.5G packed; indexing 100%; resolving deltas 100%
    Indexed 982d645a985bd89f3850cbd2b6f4a22055ef9aa6.pack
       35m46.51s real    22m27.42s user    12m43.85s system
    
    This is both faster and produces a smaller pack file.
    
    -- 
    Christian "naddy" Weisgerber                          naddy@mips.inka.de
    
    
    
  • Thomas Adam:

    reuse deltas while packing