See? Patents do help foster innovation!
See? Patents do help foster innovation!
Posted May 8, 2009 14:19 UTC (Fri) by nix (subscriber, #2304)In reply to: See? Patents do help foster innovation! by efexis
Parent article: KSM tries again
page (one cacheline) and then use that partial hash to eliminate the
majority of pages from comparison. (But this obvious solution, which took
less than five seconds to think of, may be patented. Bleah.)
Posted May 15, 2009 19:43 UTC (Fri)
by nevyn (guest, #33129)
[Link]
Posted Nov 17, 2009 16:03 UTC (Tue)
by gmatht (guest, #58961)
[Link]
This is clearly very inefficient, as this simple algorithms needs exactly
Another approach would be to make use of the fact that if say, we know all
See? Patents do help foster innovation!
We can avoid reading the whole page for each comparison, even in the worst case.
right edge is labelled 1. Whenever we read a bit from the page we follow the
edge with the label of the bit. So for example, if we look for the zero page
in the tree then we navigate to the leftmost child node.
(4096*8) branches to find any page. However we read the page exactly once
for all comparisons. And we can optimize it, e.g. if we have a chain of
nodes with only single children we can merge them into a single edge.
child pages of the current node start with "Foo" we don't need to compare
the first 3 characters anymore. As such, we'd usually only have to access
each cache-line once.