62 breaking releases

0.65.0 Aug 5, 2024
0.63.0 Aug 5, 2024
0.56.0 Jul 30, 2024

#2068 in Data structures


Used in 2 crates

MIT license

35KB
1K SLoC

fast collections

This crate need generic_const_exprs feature.

  1. I need a complex game system, very fast speed is required!
  2. Using String, Box, and Vec is slow due to heap allocation.
  3. 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.
  4. Then there is no Cursor, Vec, or String, but Let’s use [T;N]. However, const generics are difficult to manage
  5. If so, let’s use GenericArray. However, it lacks Vec, Cursor, and String types.
  6. Then, let’s create a crate that uses typenum rather than const generic without heap allocation and no references.

No runtime deps