[tor-bugs] #16557 [metrics-lib]: Minor buffering improvements reading descriptors.

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jul 11 22:28:47 UTC 2015


#16557: Minor buffering improvements reading descriptors.
-------------------------+-------------------------
 Reporter:  leeroy       |          Owner:  karsten
     Type:  enhancement  |         Status:  new
 Priority:  minor        |      Milestone:
Component:  metrics-lib  |        Version:
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
-------------------------+-------------------------
 The reading of descriptors is usually done from a BufferedInputStream
 wrapping the source. The improvement is to change the read from 1k to 8k.
 This coincides with the stream's internal buffer size. The alternative is
 1k reads from an otherwise 8k aligned buffer.

 This patch also wraps the writing of disk files in a
 !BufferedOutputStream.

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


More information about the tor-bugs mailing list