farsightsec / wdns

low-level DNS library
Apache License 2.0
18 stars 5 forks source link

Use fast_inet_ntop instead of inet_ntop #54

Closed dvladi77 closed 1 year ago

dvladi77 commented 1 year ago

Use fast_inet_ntop instead of inet_ntop

_wdns_rdata_to_ubuf performance improved 6 times when switched to call fast_inet_ntop Original: 30.5% overall time spent in 19908 calls Modified: 5.08% overall time spent in 19904 calls

shw700 commented 1 year ago

This seems to have the same bug that was recently fixed locally.