|
tatami_tiledb
tatami bindings for TileDB-backed matrices
|
Options for sparse TileDB extraction. More...
#include <SparseMatrix.hpp>
Public Attributes | |
| std::size_t | maximum_cache_size = sanisizer::cap<std::size_t>(100000000) |
| bool | require_minimum_cache = true |
Options for sparse TileDB extraction.
Note that more TileDB-specific options can be set by passing in a custom tiledb::Context option to the SparseMatrix constructor.
| std::size_t tatami_tiledb::SparseMatrixOptions::maximum_cache_size = sanisizer::cap<std::size_t>(100000000) |
Size of the in-memory cache in bytes.
We cache all tiles required to read a row/column during a tatami::SparseExtractor::fetch() or tatami::SparseExtractor::Fetch() call. This allows us to re-use the cached tiles when adjacent rows/columns are requested, rather than re-reading them from disk.
Larger caches improve access speed at the cost of memory usage. Small values may be ignored if require_minimum_cache is true.
| bool tatami_tiledb::SparseMatrixOptions::require_minimum_cache = true |
Whether to automatically enforce a minimum size for the cache, regardless of maximum_cache_size. This minimum is chosen to ensure that all tiles overlapping one row (or a slice/subset thereof) can be retained in memory, so that the same tiles are not repeatedly re-read from disk when iterating over consecutive rows/columns of the matrix.