minor optimizations to precompute_partition_info_sums_()