]> git.ipfire.org Git - thirdparty/bind9.git/commit
chg: dev: Remove unused foundname parameter
authorAlessio Podda <alessio@isc.org>
Wed, 10 Dec 2025 11:15:24 +0000 (11:15 +0000)
committerAlessio Podda <alessio@isc.org>
Wed, 10 Dec 2025 11:15:24 +0000 (11:15 +0000)
commit2d72b48e62f7dbdd503bcd0c2cfe98525a558b30
treeaeb52988cf20df2f32000b3298bc9873e73666df
parentc39e93b52728a0b94f390e83def10faa8b888b21
parent4d698ee0e3d944662ce54192eb5ee5a738a272c2
chg: dev: Remove unused foundname parameter

The `foundname` parameter in `qp.c:dns_qp_lookup` was effectively used only in unit tests, as in every case the name is needed, it can be retrieved directly from the node pointer. It also required an inefficient implementation that extracted the name by converting it into a key and then immediately converting it back.

This MR refactors `qp.c:dns_qp_lookup` not to have a foundname parameter, resulting in a 5% speedup in the handling of NXDOMAIN responses in perflab.

Merge branch 'alessio/qp-no-foundname' into 'main'

See merge request isc-projects/bind9!11339