MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / try_allocate

Method try_allocate

graphlite/src/exec/memory_budget.rs:133–135  ·  view source on GitHub ↗

ROADMAP v0.2.0 - Memory budget soft allocation (see ROADMAP.md §1)

(&self, bytes: usize)

Source from the content-addressed store, hash-verified

131 /// Useful for soft limits where we want to continue with degraded performance.
132 #[allow(dead_code)] // ROADMAP v0.2.0 - Memory budget soft allocation (see ROADMAP.md §1)
133 pub fn try_allocate(&self, bytes: usize) -> bool {
134 self.allocate(bytes).is_ok()
135 }
136
137 /// Release memory back to the budget
138 ///

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.80

Tested by

no test coverage detected