partitioner performance improvements