Although the computation is split into batches, the comparison step still gets an out-of-memory error.