Skip to content

Commit 2313114

Browse files
committed
refactor[cuda]: compose pooled file read backends
Signed-off-by: Onur Satici <onur@spiraldb.com>
1 parent 134bc9d commit 2313114

4 files changed

Lines changed: 527 additions & 462 deletions

File tree

‎vortex-cuda/src/pinned.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ impl PooledPinnedBuffer {
309309
.unwrap_or_else(|e| vortex_panic!("failed to access pinned host buffer: {e}"))
310310
}
311311

312+
/// Shortens the logical length without reallocating the pinned buffer.
313+
///
314+
/// This is an O(1) metadata update; the allocation capacity is unchanged.
312315
#[cfg(target_os = "linux")]
313316
pub(crate) fn truncate(&mut self, len: usize) {
314317
let inner = self

0 commit comments

Comments
 (0)