No need to optimise for a node with no hooks, my braino.
This commit is contained in:
@@ -850,12 +850,9 @@ ngs_findhook(node_p node, const char *name)
|
|||||||
uint32_t h;
|
uint32_t h;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Microoptimisations for a ng_socket with no
|
* Microoptimisation for an ng_socket with
|
||||||
* hooks, or with a single hook, which is a
|
* a single hook, which is a common case.
|
||||||
* common case.
|
|
||||||
*/
|
*/
|
||||||
if (node->nd_numhooks == 0)
|
|
||||||
return (NULL);
|
|
||||||
if (node->nd_numhooks == 1) {
|
if (node->nd_numhooks == 1) {
|
||||||
hook_p hook;
|
hook_p hook;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user