Dramatically simplify the calculation of blockdiff.