ZettaScaleLabs / stabby

A Stable ABI for Rust with compact sum-types
Other
328 stars 13 forks source link

`#[feature(generic_const_exprs)]` based implementation of typenum2 to improve performance? #6

Open p-avital opened 1 year ago

p-avital commented 1 year ago

Currently, all integers are handled through lambda-calculus (GAT rewrite of typenum). Would const generics perform better? Making UInt<const VALUE: usize> may be a way to reduce the overhead of trying that.