[tor-bugs] #24368 [Core Tor/Tor]: A zstd-compressed cached-microdesc-consensus is 1.5% larger than a gzipped one

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Nov 21 12:49:18 UTC 2017


#24368: A zstd-compressed cached-microdesc-consensus is 1.5% larger than a gzipped
one
-------------------------+-------------------------------------------------
     Reporter:  teor     |      Owner:  (none)
         Type:  defect   |     Status:  new
     Priority:  Medium   |  Milestone:  Tor: 0.3.3.x-final
    Component:  Core     |    Version:  Tor: 0.3.1.1-alpha
  Tor/Tor                |   Keywords:  regression, compression, zstd, tor-
     Severity:  Normal   |  dir
Actual Points:           |  Parent ID:
       Points:  1        |   Reviewer:
      Sponsor:           |
-------------------------+-------------------------------------------------
 Using the cached-microdesc-consensus that is:
 {{{
 valid-after 2017-11-21 11:00:00
 }}}

 I get the following results:
 {{{
 $ zstd cached-microdesc-consensus
 $ gzip -9 cached-microdesc-consensus
 $ du -h cached-microdesc-consensus*
 1.9M    cached-microdesc-consensus
 564K    cached-microdesc-consensus.gz
 576K    cached-microdesc-consensus.zst
 }}}

 It's only 1.5% larger, but I thought zstd was meant to produce smaller
 consensuses than gzip?
 Or did I get the compression settings wrong?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24368>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list