]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: ebtree: make ebmb_insert_prefix() keep a copy the new node's key
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Nov 2022 07:08:31 +0000 (08:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Nov 2022 08:37:09 +0000 (09:37 +0100)
commit91d31c9e1c34eb760b8d1bd8e2e79ccf48096884
tree41140392621c02336b38a246a0d2ba88b111d1c3
parentbf13e53964228eece9d5d532943720bd9af7915b
OPTIM: ebtree: make ebmb_insert_prefix() keep a copy the new node's key

Similarly to the previous patch, it's better to keep a local copy of
the new node's key instead of accessing it every time. This slightly
reduces the code's size in the descent and further improves the load
time to 7.45s.
include/import/ebmbtree.h