wireshark/writecap
AndersBroman bd9afdddfe Reduce number of fwrite when writing pcap-ng EPB.
According to callgrind with the patch dumping 3000 pakets the number of
calls to write_to_file is reduced from 11541 to 9000 reducing the number
of lr from 4 681 518 to 4 314 101.

If the buffer holding the packet was guaranteed to be padded to 32 bit
boundary the code could be simplified and if there was space "in front"
for the packet header it would be even better.

Change-Id: Ie991c05fa9d831ee4d703bd47b8123f2b1f83277
Reviewed-on: https://code.wireshark.org/review/20256
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-02-24 04:42:31 +00:00
..
.editorconfig
CMakeLists.txt cmake: make WERROR_COMMON_FLAGS a normal string 2016-09-30 20:08:02 +00:00
Makefile.am Remove Makefile.common files 2016-06-30 11:04:17 +00:00
doxygen.cfg.in Fix some copy/pasteos for writecap using doxygen 2016-03-26 00:51:14 +00:00
pcapio.c Reduce number of fwrite when writing pcap-ng EPB. 2017-02-24 04:42:31 +00:00
pcapio.h