Wireshark-dev: Re: [Wireshark-dev] Profiled dumpcap

From: Anders Broman <a.broman@xxxxxxxxxxxx>
Date: Fri, 09 May 2014 07:19:13 +0200
Guy Harris skrev 2014-05-09 07:11:
On May 8, 2014, at 2:09 PM, Anders Broman <a.broman@xxxxxxxxxxxx> wrote:

I'm not sure but from the picture there seems to be a bit of overhead per write so if we reduce
the fwrites() to 3, hdr-pkdata-footer with hdr and footer being a local buffer[x] it might make some difference.
Presumably you're talking about the writes in pcapng_write_enhanced_packet_block() and putting the padding, options, and trailer into the footer, right?
Yes

But how much of the overhead is due to multiple calls to write_to_file() and thus to fwrite()?
That remains to be seen :-)
Perhaps it's not worth it...

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe