You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #49781 [Translation] Improve message extraction performance for big code bases (welcoMattic)
This PR was merged into the 6.3 branch.
Discussion
----------
[Translation] Improve message extraction performance for big code bases
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix#49585 <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License | MIT
| Doc PR |
As discussed in #49585, we try to extract messages from all src/ directory in `translation:debug` and `translation:extract` commands. But, it's not necessary to look into all files, as we can easily detect if a file contains something about translation (with some regexes).
This PR filter files before messages extraction, and it divide by at least 3 the time used to extract messages from an app with 100 000 php files.
Commits
-------
ae6c25b fix(translation): Improve performance of debug and extract command for big code base
0 commit comments