|
|
|
|
|
by koverstreet
5069 days ago
|
|
...This is news? You've got a tight loop with a branch, and depending on which way the branch goes, you're going to touch completely different locations in memory. The solution (at least for some problems) is just to lay your data out in memory better - optimal is a binary search tree in an array, like the way heaps are implemented. That's what I did for bcache: http://evilpiepirate.org/git/linux-bcache.git/tree/drivers/m... |
|
I have some really ugly things to say to a new poster who cannot be bothered to read an article before trying to show off, but I'll refrain. In the future, read first, think, then comment. You'll be doing everyone else a favor.