Skip to content

NameImportingPostRector is slow #8077

@staabm

Description

@staabm

Bug Report

Subject Details
Rector version e.g. v0.17.6

when $rectorConfig->importNames(); is enabled running rector across the otherwise identical codebase is 42% slower.

grafik

grafik

is it a known problem that $rectorConfig->importNames() is such a performance hit?

do we actually need $rectorConfig->importNames() in our projects when we run ECS right after we ran rector?

Minimal PHP Code Causing Issue

my rector command on the kunzmann private repo:

blackfire run php vendor/bin/rector process app/admin --ansi --clear-cache

config

$rectorConfig->importNames();
$rectorConfig->disableParallel();

Expected Behaviour

fast CI :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions