summaryrefslogtreecommitdiff
path: root/tools/arch
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-11-15 21:52:12 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:46 -0400
commit4fcdd6ec345e1aeed23fbdbe53d62965c1a79b99 (patch)
treecfe98f33f2222015fb944dfa01c944c6b5e89234 /tools/arch
parent0f35e0860a73a35e8c3aa1afebc45e75eb2fbae6 (diff)
bcachefs: Btree split improvement
This improves the bkey_format calculation when splitting btree nodes. Previously, we'd use a format calculated for the original node for the lower of the two new nodes. This was particularly bad on sequential insertions, where we iteratively split the last btree node, whos format has to include KEY_MAX. Now, we calculate formats precisely for the keys the two new nodes will contain. This also should make splitting a bit more efficient, since we're only copying keys once (from the original node to the new node, instead of new node, replacement node, then upper split). Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/arch')
0 files changed, 0 insertions, 0 deletions