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: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2021-04-06 13:43:31 -04:00 committed by Kent Overstreet
parent f72b1fd710
commit a085778500

View File

@ -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)
{