Skip to content

Slow start time #3386

@trungdq88

Description

@trungdq88

Prettier reported "45ms" to pretty a file, but actually take ~420ms (on my machine) to complete the whole process (reported by time prettier --write app.js).

image

This may not be a problem when we manually use it in terminals, but can cause plugins like https://github.com/prettier/vim-prettier to have a significant delay for every save action.

Is there something we can do about it? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliIssues with Prettier's Command Line Interfacetype:perfIssue with performance of Prettier

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions