Wireshark-dev: Re: [Wireshark-dev] Profiling tshark
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx]
On Behalf Of Evan Huus On Jun 9, 2014, at 4:02 AM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:
That's awesome, I hadn't realized all those little changes had added up so much. I don’t remember now but it might be that the first incarnation of tvb_get_string_enc was really really expensive and we are cheating a bit now using ENC_UTF_8 for most of the cases, Avoiding the char per character check.
Some stuff that might still be interesting to look into is xml parsing Tvb_parse_get() In
tree_data_add_maybe_interesting_field() change the g_hash_table_new and g_ptr_array_add() to use wmem based functions. Change p_add_proto_data() to use wmem based functions. You may also want to look at using Jakub's new proto_tree API (passing the hf vars directly) since it uses one fewer layer of indirection. I think (but am not sure) that
it might be a bit faster than the current one. I haven’t got my head around how to use those yet…
Regards Anders
|
- References:
- [Wireshark-dev] Profiling tshark
- From: Anders Broman
- Re: [Wireshark-dev] Profiling tshark
- From: Evan Huus
- [Wireshark-dev] Profiling tshark
- Prev by Date: Re: [Wireshark-dev] Profiling tshark
- Next by Date: Re: [Wireshark-dev] [Wireshark-commits] master 97e1491: Sync .deb packaging from Debian
- Previous by thread: Re: [Wireshark-dev] Profiling tshark
- Next by thread: Re: [Wireshark-dev] [BMR #93974] ipmi-trace dissector
- Index(es):