On May 8, 2014, at 1:02 PM, Anders Broman <[email protected]> wrote:

> It might be worth it to reduce the number of write_to_file() by putting stuff 
> in a buffer before writing to file.

write_to_file() calls fwrite(), which puts stuff in a buffer before writing to 
the file in the sense of "calling write() or WriteFile()).  Would adding 
another layer of buffering atop the standard I/O library buffering make a 
significant difference here?  (libpcap, as used by, for example, tcpdump, makes 
multiple fwrite() calls per packet written.)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to