Insert into deduplication table on reads as well
Created by: ticki
Currently, it will only insert a new entry after an alloc, but it could as well do it when reading.
There is two issues with this though:
-
SHA256 is really slow compared to other hashing algorithms. This is likely noticable when using high-end SSDs.
-
Alternatively, the table could be written to the disk when shutting down.
This migh exhibit better cache behavior, as recently read pages might correlate with allocations of pages with same data.