Commit a0857785 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Increase BSET_CACHELINE to 256 bytes

Linear searches have gotten cheaper relative to binary searches on
modern hardware, due to better branch prediction behaviour.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent f72b1fd7
......@@ -188,7 +188,7 @@ static inline enum bset_aux_tree_type bset_aux_tree_type(const struct bset_tree
* gets to the second cacheline.
*/
#define BSET_CACHELINE 128
#define BSET_CACHELINE 256
static inline size_t btree_keys_cachelines(const struct btree *b)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment