suid

Crates.iosuid
lib.rssuid
version1.0.0
sourcesrc
created_at2023-09-07 16:49:06.316694
updated_at2023-09-07 16:49:06.316694
descriptionSortable (timestamp-first) unique identifier
homepage
repositoryhttps://github.com/abineo/suid
max_upload_size
id966393
size9,551
Christoph Schneider (chjlsch)

documentation

README

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

Commit count: 2

cargo fmt