The compaction planner spends a great deal of time in ParseFileName called from findGenerations.
The caching in findGenerations to alleviate this is incorrect. Caching the generation and sequence number in each ExtFileStats may eliminate the need for caching in findGenerations, or at the least simplify a new correct caching algorithm