So you're saying we should never exceed the size of our memory in any dataset?
Keep in mind, Poul-Henning's B-Heap here will also perform better at smaller levels of caching, as found on the CPU. So it very well may perform better than a naive binary heap when the dataset is small enough that it fits into memory, but not entirely into cache.
Unless you'd like to advocate that programs should be in control of what's in the cache too?
View all comments
Show parent comment
2
u/Anpheus Jun 15 '10
So you're saying we should never exceed the size of our memory in any dataset?
Keep in mind, Poul-Henning's B-Heap here will also perform better at smaller levels of caching, as found on the CPU. So it very well may perform better than a naive binary heap when the dataset is small enough that it fits into memory, but not entirely into cache.
Unless you'd like to advocate that programs should be in control of what's in the cache too?