(
governor: &Option<Arc<MemoryGovernor>>,
bytes: usize,
)
| 27 | /// alive for the duration of the allocation it covers. |
| 28 | #[inline] |
| 29 | fn try_reserve_or_skip( |
| 30 | governor: &Option<Arc<MemoryGovernor>>, |
| 31 | bytes: usize, |
| 32 | ) -> Result<Option<nodedb_mem::BudgetGuard>, VectorError> { |
| 33 | match governor { |
| 34 | Some(g) => Ok(Some(g.reserve(EngineId::Vector, bytes)?)), |
| 35 | None => Ok(None), |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /// PQ codec with trained codebooks. |
| 40 | #[derive( |
no test coverage detected