I want a cachedAsyncBuffer(file: AsyncBuffer, options?: { minSize?: number }) - AsyncBuffer helper for…
I want a cachedAsyncBuffer(file: AsyncBuffer, options?: { minSize?: number }) - AsyncBuffer helper for…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). For a small file, such as file.byteLength === 100 with { minSize: 200 } , the wrapper should read the whole…
The task
For a small file, such as `file.byteLength === 100` with `{ minSize: 200 }`, the wrapper should read the whole source once with `file.slice(0, 100)`, then serve later calls like `slice(0, 10)` and `slice(50, 60)` from that cached whole buffer without calling the source again. For a larger file, such as…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.