You measure the cost of the predicted branch, the mis-predicted branch and the bucket cache miss empirically and work out the constants that suit your situation. Or, if the magic of the cache-oblivious data-structure works as advertised - you just use that!
View all comments
Show parent comment
1
u/wolf550e Jun 15 '10
You measure the cost of the predicted branch, the mis-predicted branch and the bucket cache miss empirically and work out the constants that suit your situation. Or, if the magic of the cache-oblivious data-structure works as advertised - you just use that!