[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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@xxxxxxxxxxx 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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs