-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #612: Improve speed and result quality for global translation m…
…emory api * For a global search, don't loop through all repositories, only those a locale supports (major perf gain for small locales) * Simplify ShowResults::getTranslationMemoryResults(), send a prepared array without entities as keys * Ignore empty localized strings in search results (happens when the entity is in the repo but empty) For locales that do everything, this has no perf impact, for most locales that will give a small perf boost (most locales don't do mozilla-central), for locales that have less repositories (just started and only have Aurora for example, or only translating Gaia, or not translating Firefox for iOS, the perf gain can be significant). For Guarani for example, request times are divided by 5 on my machine compared to our current code. Same for memory use.
- Loading branch information
1 parent
d240a8b
commit 58c3686
Showing
3 changed files
with
50 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters