Wireshark mailing list archives

Re: Profiling results with optimized function ws_mempbrk_sse42() ws


From: Anders Broman <anders.broman () ericsson com>
Date: Wed, 4 Jun 2014 11:24:59 +0000

Hi,
I did a test with
static inline const guint8*
guint8_pbrk(const guint8* haystack, size_t haystacklen _U_, const guint8 *needles, guchar *found_needle)
{
                const guint8 *result = (const guint8 *)strpbrk(haystack, needles);

                if (result && found_needle)
                                *found_needle = *result;

                return result;
}

Which seems to give as good results on Ubuntu 13.10, it ends up using __strpbrk_sse42 (libc-2.17.so: strcspn-c.c, ...)
==29458==
==29458== Events    : Ir
==29458== Collected : 21130728727
==29458==
==29458== I   refs:      21,130,728,727
Load time in WS 0:19.300


From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Anders Broman
Sent: den 2 juni 2014 08:36
To: wireshark-dev () wireshark org
Subject: [Wireshark-dev] Profileing results with optimized function ws_mempbrk_sse42()

Hi,
I think this looks very good. With filter
22,212,643,979 reduced to 21,418,572,385. Could we use something similar for format_text() and
Address equal functions? Other string functions?
Regards
Anders

Attachment: callgrind.out.strpbrk.29458.bz2
Description: callgrind.out.strpbrk.29458.bz2

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

Current thread: