Issue #2872611 by alexpott: Optimise \Drupal\Core\Extension\ThemeHandler::refreshInfo() for the early installer