-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current format for translation data is problematic. Design and implement a new format which is more time-efficient and space-efficient. See the documentation in tools/compile-translations.go for details. This commit should not change behavior. Benchmarks before: -------------------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------------------- benchmark_translate_from_source_code 4.20 ns 4.20 ns 166058970 benchmark_translate_from_translation_hit 21.5 ns 21.5 ns 32483955 benchmark_translate_from_translation_miss 14.3 ns 14.3 ns 48922995 benchmark_load_translations/c 24.5 ns 24.5 ns 28542187 benchmark_load_translations/en 28.5 ns 28.5 ns 24432980 benchmark_load_translations/en_loud 42.8 ns 42.8 ns 16316674 benchmark_load_translations/en_us 51.6 ns 51.6 ns 13472161 benchmark_load_translations/en_us_loud 71.6 ns 71.6 ns 9730601 benchmark_load_translations/en_us_utf8 94.9 ns 94.9 ns 7243153 benchmark_load_translations/en_us_utf8_loud 119 ns 119 ns 5856172 benchmark_load_translations/posix 32.3 ns 32.3 ns 21791104 benchmark_load_translations_and_find_hit 56.3 ns 56.3 ns 12252757 benchmark_load_translations_and_find_miss 52.1 ns 52.1 ns 13305961 Benchmarks after: -------------------------------------------------------------------------------------- Benchmark Time CPU Iterations -------------------------------------------------------------------------------------- benchmark_translate_from_source_code 3.11 ns 3.11 ns 223754407 benchmark_translate_from_translation_hit 1.73 ns 1.73 ns 404250404 benchmark_translate_from_translation_miss 2.17 ns 2.17 ns 320953691 benchmark_load_translations/c 30.1 ns 30.1 ns 23174741 benchmark_load_translations/en 34.1 ns 34.1 ns 20494803 benchmark_load_translations/en_loud 39.3 ns 39.3 ns 17804728 benchmark_load_translations/en_us 63.1 ns 63.1 ns 10996089 benchmark_load_translations/en_us_loud 67.1 ns 67.1 ns 10363768 benchmark_load_translations/en_us_utf8 115 ns 115 ns 6080506 benchmark_load_translations/en_us_utf8_loud 126 ns 126 ns 5536004 benchmark_load_translations/posix 37.2 ns 37.2 ns 18806537 benchmark_load_translations_and_find_hit 39.9 ns 39.9 ns 17542497 benchmark_load_translations_and_find_miss 40.2 ns 40.2 ns 17409687
- Loading branch information
Showing
29 changed files
with
3,893 additions
and
6,312 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
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
Oops, something went wrong.