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

unicode-org / icu4x / 11852546259
73%

Build:
DEFAULT BRANCH: main
Ran 15 Nov 2024 08:18AM UTC
Jobs 1
Files 975
Run time 2min
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 Nov 2024 08:07AM UTC coverage: 75.368% (+0.02%) from 75.352%
11852546259

push

github

web-flow
Split numbering systems out of decimal data (#5822)

Fixes https://github.com/unicode-org/icu4x/issues/5818


Before:

```
 decimal/symbols@2, <lookup>, 1316B, 252 identifiers
 decimal/symbols@2, <total>, 4308B, 2436B, 49 unique payloads
```

After:


```
 decimal/digits@1, <lookup>, 207B, 27 identifiers
 decimal/digits@1, <total>, 1080B, 1060B, 27 unique payloads
 decimal/symbols@2, <lookup>, 804B, 184 identifiers
 decimal/symbols@2, <total>, 1749B, 881B, 31 unique payloads

```

Saving ~1.5kB, a good third of the data size. A lot of the wins are just
in deduplication.

I'm also going to try moving the tinystr into the VarZeroVec and seeing
what happens.

I may also try and store the digits more compactly as an `enum {
Sequential(char), Many(ZeroVec<char>) }`. A downside of this is that the
Sequential case would need UTF8 validation every time, though we could
make it so that that's just the wire format and we expand to a digit
array on data load.


Todo: add configurability for this.

@sffc In the long run CompactDecimal / etc should also be using this
data. In that case, should we just always generate all known decimal
systems? How would the unification work across keys?

66 of 103 new or added lines in 12 files covered. (64.08%)

7 existing lines in 6 files now uncovered.

54461 of 72260 relevant lines covered (75.37%)

656916.29 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.71
-2.52% components/decimal/src/format.rs
1
80.0
-0.33% provider/source/src/decimal/symbols.rs
2
82.05
3.48% components/decimal/src/lib.rs
2
86.67
provider/source/src/decimal/digits.rs
3
0.0
0.0% utils/zerovec/derive/src/utils.rs
6
0.0
0.0% utils/zerovec/derive/src/make_varule.rs
8
0.0
0.0% ffi/capi/src/decimal.rs
14
70.27
-13.4% provider/source/src/decimal/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% utils/zerovec/derive/src/make_varule.rs
1
91.94
-0.2% components/datetime/src/provider/pattern/reference/parser.rs
1
75.81
-1.61% components/datetime/src/provider/pattern/hour_cycle.rs
1
77.99
-0.48% components/datetime/src/provider/skeleton/helpers.rs
1
86.11
-0.93% provider/source/src/units/data.rs
2
0.0
0.0% ffi/capi/src/decimal.rs
Jobs
ID Job ID Ran Files Coverage
1 11852546259.1 15 Nov 2024 08:18AM UTC 975
75.37
GitHub Action Run
Source Files on build 11852546259
  • Tree
  • List 975
  • Changed 320
  • Source Changed 23
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11852546259
  • 53eac4df on github
  • Prev Build on main (#11851749882)
  • Next Build on main (#11854347685)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc