speedup allocation in pack-redundant.c