62 breaking releases
0.65.0 | Aug 5, 2024 |
---|---|
0.63.0 | Aug 5, 2024 |
0.56.0 | Jul 30, 2024 |
#446 in Data structures
1,345 downloads per month
Used in 2 crates
35KB
1K
SLoC
fast collections
This crate need generic_const_exprs
feature.
- I need a complex game system, very fast speed is required!
- Using String, Box, and Vec is slow due to heap allocation.
- In that case, let’s use &’str, which is fast even if zero copy modification of the size is impossible. However, it is difficult to manage due to its lifetime.
- Then there is no Cursor, Vec, or String, but Let’s use [T;N]. However, const generics are difficult to manage
- If so, let’s use GenericArray. However, it lacks Vec, Cursor, and String types.
- Then, let’s create a crate that uses typenum rather than const generic without heap allocation and no references.