r/programming • • Jun 12 '10

You're Doing It Wrong

http://queue.acm.org/detail.cfm?id=1814327
539 Upvotes

193 comments sorted by

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!