Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flexint: Big integer types, optimized for small values

For applications in which numbers are usually small and only occasionally big, this crate's FlexUint and FlexInt may enable better performance than the num-bigint crate's BigUint and BigInt types, which involve unconditional heap allocation for all values regardless of magnitude.

One (admittedly dodgy) benchmark showed a 458% speedup in FlexInt compared to BigInt when adding small values, while only introducing a 39% slowdown for big values.

Cargo features

  • serde: provides implementations of serde::Serialize and serde::Deserialize for FlexUint and FlexInt.

About

Big integer types, optimized for small values

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages