summaryrefslogtreecommitdiff
path: root/lib/table.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-16 13:56:01 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-10-16 13:56:01 -0400
commitefb149d95bb4045f44fcaf6e9f1d59f76af6c013 (patch)
tree93d52158ce587c596a255ca8fac1ad77bec7ce5c /lib/table.c
parent4c6ed05e4e2276c463f16c1dbf8d9f04bc1130fe (diff)
lib: Allow hash_get to sidestep expensive hash key generation in some cases
There is no need to generate a hash key *if* the hash_alloc_function is NULL and the hash is empty. This changed showed a measurable increase in performance for table hash lookup for tables that were meant to be empty in bgp( the distance commands ). Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/table.c')
0 files changed, 0 insertions, 0 deletions