Wireshark-dev: Re: [Wireshark-dev] Small performance improvements to packet-http.c
From: "Didier" <[email protected]>
Date: Thu, 8 Nov 2007 00:54:14 +0100

On Wed, 7 Nov 2007 11:58:24 +0200, Kaul wrote

> Attached please find a version which reverts back the erroneous printf() changes. Sorry.

There's a bug
conv_data->request_method = ep_strndup("POST", 4);
should be

Or better:
stat_info->request_method = "POST"
conv_data->request_method ="POST"

And you can precompute
(headers[i].namelen - 1)

BTW if you're in optimization mood you can play with http://wiki.wireshark.org/Development/Optimization
I'm not sure it compiles for Window though.