Skip to content

Skip or improve translation process #1452

@jdohuutin

Description

@jdohuutin

Hi,

The translator component is heavily called during the running of my behat tests.

I collect some metrics of my project with blackfire.

977 scenarios (977 passed)
3032 steps (3032 passed)
4m40.23s (1.33Gb)

image

It take ~10% of the time to translate steps definitions.

Maybe there should be a way to disable the translation process ? (I'm not using it and use the default en language).

Or maybe we should cache the result of the translation process ? (4mil call of the method Behat\Behat\Definition\Translator\Translator::trans may not be optimized ?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions