Skip to content
Snippets Groups Projects
  • Carsten Gräser's avatar
    4886d18b
    Switch to std::uint_least32_t for stored indices in MatrixIndexSet · 4886d18b
    Carsten Gräser authored
    Using `std::uint_least32_t` instead of `std::size_t` halves the required memory
    and thus also improves performance.
    Notice that `std::uint32_t` is optional and `std::uint_fast32_t` is intended to be
    fast in terms of computations and may have 64 bits. Here we're interested in reducing
    memory and thus bandwith. Hence `std::uint_least32_t`, which is the smallest sufficient
    type is most appropriate.
    4886d18b
    History
    Switch to std::uint_least32_t for stored indices in MatrixIndexSet
    Carsten Gräser authored
    Using `std::uint_least32_t` instead of `std::size_t` halves the required memory
    and thus also improves performance.
    Notice that `std::uint32_t` is optional and `std::uint_fast32_t` is intended to be
    fast in terms of computations and may have 64 bits. Here we're interested in reducing
    memory and thus bandwith. Hence `std::uint_least32_t`, which is the smallest sufficient
    type is most appropriate.