[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #16557 [metrics-lib]: Minor buffering improvements reading descriptors.
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs