• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

elixir-gettext / gettext / 909b0efa126c770cdbfe800d71ff90904b17d435-PR-446
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: extraction-merge-perf
DEFAULT BRANCH: main
Ran 15 Oct 2026 04:54PM UTC
Jobs 1
Files 19
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Oct 2026 04:54PM UTC coverage: 93.765% (+0.1%) from 93.665%
909b0efa126c770cdbfe800d71ff90904b17d435-PR-446

Pull #446

github

oliver-kriska
Store translations without interpolation in a literal map

Backends generate one function clause per translation, and the Erlang
compiler spends most of a backend's compile time optimizing the huge
functions this produces: on a catalog with 176 PO files and 73k
translations, a forced compile took 181 s of CPU, 87% of it in the Erlang
compiler's SSA passes. Translations that need no interpolation have nothing
to compile, so keep them in a literal map that the catch-all clause of the
singular lookup function searches instead of generating a clause for each.
Messages with interpolation and plural messages keep their clauses, and
backends with a custom interpolation module keep the previous code
generation, since whether a translation needs interpolation depends on the
interpolation syntax.

On that catalog a forced compile goes from 204 s to 60 s wall (181 to 57 s
CPU, 4.8 to 2.5 GB) for a single module and from 26 s to 8 s (249 to 67 s
CPU) with split_module_by: [:locale]. Looking such a translation up takes
about 45 ns instead of 15 ns; everything else is unchanged, and every
message of the catalog, with complete, partial and extra bindings, returns
identical results from both versions.
Pull Request #446: Store translations without interpolation in a literal map instead of function clauses

14 of 14 new or added lines in 1 file covered. (100.0%)

767 of 818 relevant lines covered (93.77%)

36.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 909b0efa126c770cdbfe800d71ff90904b17d435-PR-446.1 15 Oct 2026 04:54PM UTC 19
93.77
GitHub Action Run
Source Files on build 909b0efa126c770cdbfe800d71ff90904b17d435-PR-446
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #446
  • PR Base - main (#45E14F04...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc