• Marko Mäkelä's avatar
    MDEV-30289: Implement small_vector for mtr_t::m_memo · 67dc8af2
    Marko Mäkelä authored
    To avoid heap memory allocation overhead for mtr_t::m_memo,
    we will allocate a small number of elements statically in
    mtr_t::m_memo::small. Only if that preallocated data is
    insufficient, we will invoke my_alloc() or my_realloc() for
    more storage. The implementation of the data structure is
    inspired by llvm::SmallVector.
    67dc8af2
CMakeLists.txt 12.9 KB