| 1 | // Copyright 2026 Deno Land Inc. Apache-2.0 license. |
| 2 | |
| 3 | //! Shared bounds for cell-owned reclamation work. |
| 4 | //! |
| 5 | //! A sweep reclaims space after a read path has already hidden expired state. |
| 6 | //! The work must therefore be bounded per cell turn, and a full batch asks the |
| 7 | //! alarm to return promptly. KV and Queues use the same bound and the same |
| 8 | //! harness executor, so a new cell-backed feature cannot quietly choose an |
| 9 | //! unbounded cleanup loop. |
| 10 | |
| 11 | /// The maximum rows one cell sweep examines in one turn. |
| 12 | pub const BATCH_ROWS: usize = 256; |