Skip to content

Commit

Permalink
Move to index8 and regen
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 15, 2024
1 parent b1fc8f8 commit 872673a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 52 deletions.
4 changes: 4 additions & 0 deletions components/decimal/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ pub struct GroupingSizesV1 {
#[zerovec::skip_derive(Ord)]
#[cfg_attr(feature = "serde", zerovec::derive(Deserialize))]
#[cfg_attr(feature = "datagen", zerovec::derive(Serialize))]
// Each affix/separator is at most three characters, which tends to be around 3-12 bytes each
// and the numbering system is at most 8 ascii bytes, All put together the indexing is extremely
// unlikely to have to go past 256.
#[zerovec::format(zerovec::vecs::Index8)]
pub struct DecimalSymbolStrsBuilder<'data> {
/// Prefix to apply when a negative sign is needed.
#[cfg_attr(feature = "serde", serde(borrow))]
Expand Down
Loading

0 comments on commit 872673a

Please sign in to comment.