72532f6f03
When counting .class files, stop once the required number is reached. Also, implement simple counting logic directly, it is 25% faster than using File.walk(). The way this information is used is a heuristic, so reducing computation cost makes sense. ^KT-41456 Fixed