Wireshark mailing list archives

Re: Profiled dumpcap


From: Guy Harris <guy () alum mit edu>
Date: Thu, 8 May 2014 13:29:00 -0700


On May 8, 2014, at 1:02 PM, Anders Broman <a.broman () bredband net> 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 <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: