A simple perf optimization in pack-objects.c