Skip to content

Relay Compiler iterates over every file under root when Watchman is disabled #4849

@sverrejoh

Description

@sverrejoh

Relay compiler falls back to using WalkDir to iterate over the filesystem when Watchman isn't available. The problem is that this implementation walks over every single file under root_dir, which can be your entire repository, rather than limiting it to the files being referenced by the Relay configuration.

This can be a lot of wasted work, and is going to be slow for larger mono-repositories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions