diff options
author | Hadriel Kaplan <hadrielk@yahoo.com> | 2015-02-06 13:52:37 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-02-11 09:14:50 +0000 |
commit | a837570d02dca2ad94ff5046b13592d84a12a345 (patch) | |
tree | 0a06b1d9a1c7c1e6bc67f57412f7adc3a2a1db71 /debian | |
parent | a618f1c0d63fd290cbdc93272beaf1ca7e838027 (diff) |
Combine SSE and pre-compiled patterns for faster pbrk
This combines the SSE4.2 instructions usage, with pre-compiled
pattern searching usage, for a faster pbrk search method.
Testing against large files of HTTP and SIP, there is about
a 5% performance improvement by using pre-"compiled" patterns
for guint8_pbrk() instead of passing it the search string and
having it build the match array every time.
Similar to regular expressions, "compiling" the pattern match array
in advance only once and using the "compiled" patterns for
the searches is faster than compiling it every time.
Change-Id: Ifcbc14a6c93f32d15663a10d974bacdca5119a8e
Ping-Bug: 10798
Reviewed-on: https://code.wireshark.org/review/6990
Petri-Dish: Hadriel Kaplan <hadrielk@yahoo.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'debian')
-rw-r--r-- | debian/libwireshark0.symbols | 3 | ||||
-rw-r--r-- | debian/libwsutil0.symbols | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/debian/libwireshark0.symbols b/debian/libwireshark0.symbols index f9e56c1fa5..f11eb99082 100644 --- a/debian/libwireshark0.symbols +++ b/debian/libwireshark0.symbols @@ -1374,7 +1374,8 @@ libwireshark.so.0 libwireshark0 #MINVER# tvb_new_subset_remaining@Base 1.9.1 tvb_offset_exists@Base 1.9.1 tvb_offset_from_real_beginning@Base 1.9.1 - tvb_pbrk_guint8@Base 1.9.1 + tvb_pbrk_compile@Base 1.99.2 + tvb_pbrk_pattern_guint8@Base 1.99.2 tvb_raw_offset@Base 1.9.1 tvb_reported_length@Base 1.9.1 tvb_reported_length_remaining@Base 1.9.1 diff --git a/debian/libwsutil0.symbols b/debian/libwsutil0.symbols index 281afa9265..34ad60ea32 100644 --- a/debian/libwsutil0.symbols +++ b/debian/libwsutil0.symbols @@ -141,6 +141,8 @@ libwsutil.so.0 libwsutil0 #MINVER# started_with_special_privs@Base 1.10.0 test_for_directory@Base 1.12.0~rc1 test_for_fifo@Base 1.12.0~rc1 + tvb_pbrk_compile@Base 1.99.3 + tvb_pbrk_exec@Base 1.99.3 type_util_gdouble_to_guint64@Base 1.10.0 type_util_guint64_to_gdouble@Base 1.10.0 u3_active@Base 1.12.0~rc1 @@ -162,6 +164,5 @@ libwsutil.so.0 libwsutil0 #MINVER# ws_buffer_free@Base 1.99.0 ws_buffer_init@Base 1.99.0 ws_buffer_remove_start@Base 1.99.0 - ws_mempbrk@Base 1.99.0 ws_utf8_char_len@Base 1.12.0~rc1 ws_xton@Base 1.12.0~rc1 |