Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip or improve translation process #1452

Open
jdohuutin opened this issue Dec 18, 2023 · 0 comments
Open

Skip or improve translation process #1452

jdohuutin opened this issue Dec 18, 2023 · 0 comments

Comments

@jdohuutin
Copy link

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 ?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant