Chunked reads beat an h5py process pool; unlimited writer B-trees; Blosc2; 599/697 conformance #16
@@ -155,7 +155,9 @@ impl ChunkPlacer {
|
|||||||
&mut long
|
&mut long
|
||||||
};
|
};
|
||||||
for (o, &off) in chunk_offsets.iter_mut().zip(offsets) {
|
for (o, &off) in chunk_offsets.iter_mut().zip(offsets) {
|
||||||
*o = off as usize;
|
// An offset past `usize` is past the dataset: the chunk writes
|
||||||
|
// nothing (a plain cast would wrap it into the output).
|
||||||
|
*o = usize::try_from(off).unwrap_or(usize::MAX);
|
||||||
}
|
}
|
||||||
// SAFETY: the caller's contract.
|
// SAFETY: the caller's contract.
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|||||||
Reference in New Issue
Block a user