possible very minor speedup of partitions code