diff options
author | AndersBroman <anders.broman@ericsson.com> | 2017-02-23 09:27:50 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-02-24 04:42:31 +0000 |
commit | bd9afdddfe45b4c9c6e966df7264d12cdfd85f42 (patch) | |
tree | af651f903c1a8dc985774367fc70a2f0750554a4 /ui/recent.c | |
parent | d347a608c9b55628d00e17dc029170876ae496dd (diff) | |
download | wireshark-bd9afdddfe45b4c9c6e966df7264d12cdfd85f42.tar.gz |
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>
Diffstat (limited to 'ui/recent.c')
0 files changed, 0 insertions, 0 deletions