commit | bf13e53964228eece9d5d532943720bd9af7915b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Nov 15 08:08:24 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Nov 15 09:37:09 2022 +0100 |
tree | 5abf840d21af5819485eb5b24d845f175a38ffb3 | |
parent | e98d3858197c774db532dcac5fe9d7a1b24fb761 [diff] |
OPTIM: ebtree: make ebmb_insert_prefix() keep a copy the new node's pfx looking at a perf profile while loading a conf with a huge map, it appeared that there was a hot spot on the access to the new node's prefix, which is unexpectedly being reloaded for each visited node during the tree descent. Better keep a copy of it because with large trees that don't fit into the L3 cache the memory bandwidth is scarce. Doing so reduces the load time from 8.0 to 7.5 seconds.