aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-11-17 22:56:45 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-11-17 22:56:45 +0000
commit8acd6793276dd61fe3c06c50749728ef52857e29 (patch)
tree492c717dcc4d4db2c493229b4d0edcc40bc2fa2a /util.c
parent7952d0627aa780946fb1eb097b8663ebf1b4799e (diff)
updates to ip_to_str[_buf]() to make them faster.
This functin was in a recent profiling run the fifth most expensive function. It consumed ~3.5% of the total cpu in that run. Using a static table this function is now just over twice as fast as previously. My testrun calling it 10.000.000 times in a loop changed the execution time from ~17.3s ro ~8.2s If this test was representative for the speedup and if ~3.5 in the profile run was representative for normal cases this should make ethereal ~1.8% faster. Woohoo. (low hanging fruit) svn path=/trunk/; revision=8992
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions