8000 Performance issue with the "lint:xliff" command · Issue #27564 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Performance issue with the "lint:xliff" command #27564
Closed
@javiereguiluz

Description

@javiereguiluz

Symfony version(s) affected: all

Description
The lint:xliff command is too slow.

How to reproduce
I put the following on my Travis CI config:

$ ./tests/bin/console lint:xliff "src/Resources/translations"

But the build runs out of time (see full details):

No output has been received in the last 10m0s, this potentially indicates a
stalled build or something wrong with the build itself.

The build has been terminated.

Additional context
I've run this command locally linting just 1 file and it was extremely slow. I share the Blackfire profile:

$ blackfire run ./tests/bin/console lint:xliff src/Resources/translations/EasyAdminBundle.en.xlf

Profile:

https://blackfire.io/profiles/5f1be513-3f01-414d-8759-11ae84a00ce3/graph

The problem seems to be in PHP's DOMDocument::schemaValidate but maybe we are doing something that makes it slow?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0