smallnum

Compile-time size optimization for numeric primitives. (by tnballo)

Smallnum Alternatives

Similar projects and alternatives to smallnum based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better smallnum alternative or higher similarity.

smallnum reviews and mentions

Posts with mentions or reviews of smallnum. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-27.
  • "smallnum" crate: compile-time size optimization for numeric primitives
    3 projects | /r/rust | 27 Jun 2021
    Thus, this crate provides a macro to automatically determine the smallest integer type that can "fit" a constant max. When the size of a backing collection is known at compile-time (e.g. when using crates like `smallvec` for `!#[no_std]` development), this compile-time optimization can help save precious bytes - potentially for every node in an index-based structure (see README examples). Currently supports signed and unsigned numbers, but I’d love help with floating point support if anyone has ideas (though I don't know what a realistic usecase would be :P).

Stats

Basic smallnum repo stats
1
7
1.8
over 2 years ago

tnballo/smallnum is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of smallnum is Rust.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com