[tor-bugs] #16914 [Tor]: improve consensus download decompress performance

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Aug 27 22:57:57 UTC 2015


#16914: improve consensus download decompress performance
---------------------------------------------+-----------------------------
 Reporter:  teor                             |          Owner:
     Type:  enhancement                      |         Status:  new
 Priority:  normal                           |      Milestone:
Component:  Tor                              |        Version:  Tor:
 Keywords:  TorCoreTeam201509 Post027Freeze  |  0.2.6.10
Parent ID:                                   |  Actual Points:
                                             |         Points:
---------------------------------------------+-----------------------------
 Reported by starlight.2015q3 at binnacle.cx to tor-dev@

 "Currently tor_gzip_uncompress() starts with
 an assumed 50% compression guess.  Typical
 consensus document compression is slightly
 better than 65% and this assumption results
 in at least one realloc() and sometimes
 two realloc() calls during decompression.

 Adjust the starting assumption to 75%
 compression to eliminate the cost
 of the realloc()."

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


More information about the tor-bugs mailing list