Iterate over the objects in the packfile and extract the information
Indexing a packfile can be very expensive so this function is expected to be run in a worker thread and the stats used to provide feedback the user.
the indexer instance
storage for the running state