Restore the chunk cache.
(self: Table)
| 134 | |
| 135 | |
| 136 | def restorecache(self: Table) -> None: |
| 137 | """Restore the chunk cache.""" |
| 138 | # Define a cache for sparse table reads |
| 139 | params = self._v_file.params |
| 140 | chunksize = self._v_chunkshape[0] |
| 141 | nslots = params["TABLE_MAX_SIZE"] / (chunksize * self._v_dtype.itemsize) |
| 142 | self._chunkcache = NumCache( |
| 143 | (nslots, chunksize), self._v_dtype, "table chunk cache" |
| 144 | ) |
| 145 | self._seqcache = ObjectCache( |
| 146 | params["ITERSEQ_MAX_SLOTS"], |
| 147 | params["ITERSEQ_MAX_SIZE"], |
| 148 | "Iter sequence cache", |
| 149 | ) |
| 150 | self._dirtycache = False |
| 151 | |
| 152 | |
| 153 | def _table__where_indexed( |
no outgoing calls
no test coverage detected