suid 1.0.0

Sortable (timestamp-first) unique identifier
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented1 out of 3 items with examples
  • Size
  • Source code size: 9.05 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • abineo/suid
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chjlsch

Sortable (timestamp-first) unique identifier

Tests Crates.io Documentation

Why?

Random identifiers can be bad for performance when inserting into balanced b-tree indexes.

Variants

variant timestamp bits random bits
u32, i32 16 (hours since unix epoch) 16
u64, i64 40 (seconds since unix epoch) 24
u128, i128 64 (milliseconds since unix epoch) 64

License

☕ Coffee License 2.0