• Show log

    Commit

  • Hash : 8fe33538
    Author : Patrick Steinhardt
    Date : 2017-05-19T12:45:48

    tests: index::version: verify we write compressed index entries
    
    While we do have a test which checks whether a written index of version
    4 has the correct version set, we do not check whether this actually
    enables path compression for index entries. This commit adds a new test
    by adding a number of index entries with equal path prefixes to the
    index and subsequently flushing that to disk. With suffix compression
    enabled by index version 4, only the last few bytes of these paths will
    actually have to be written to the index, saving a lot of disk space.
    For the test, differences are about an order of magnitude, allowing us
    to easily verify without taking a deeper look at actual on-disk
    contents.