Apply a number of tunings to the allCommits() method to make it run
faster on large repositories, use the optimized ObjectIdSubclassMap,
initialize structures if we know the resulting size, avoid getName()
calls