Hint to the kernel that pages for this segment can be dropped from cache. Call this after a segment has been iterated end-to-end.
(&self)
| 137 | /// Hint to the kernel that pages for this segment can be dropped from |
| 138 | /// cache. Call this after a segment has been iterated end-to-end. |
| 139 | pub fn release_pages(&self) { |
| 140 | fadv_dontneed(&self.file, self.mmap.len(), &self.path); |
| 141 | } |
| 142 | |
| 143 | /// Read the next record from the mmap'd region. |
| 144 | /// |
no test coverage detected