Closed Manishearth closed 6 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
intl_pluralrules/src/operands.rs | 12 | 17 | 70.59% | ||
<!-- | Total: | 13 | 18 | 72.22% | --> |
Totals | |
---|---|
Change from base Build 103: | -0.5% |
Covered Lines: | 540 |
Relevant Lines: | 601 |
Currently we always convert to a string before parsing. This has two problems:
&str
inputs, we unconditionally copy and allocate despite never needing aString
This uses a new trait so that we can specialize the implementation and be fast for the common cases.
part of https://github.com/unclenachoduh/pluralrules/issues/14
r? @unclenachoduh @zbraniecki