@mia in the end any access on vector is no different from a bunch of allocated memory, because that's all it is
where c++ vector actually suffers performance-wise is growth, because c++ allocators have no concept of realloc, which means you are allocating new data + copying + freeing the old each time the capacity increases (in practice it does not matter too much)