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

Method new

graphlite/src/exec/memory_budget.rs:77–83  ·  view source on GitHub ↗

ROADMAP v0.5.0 - Memory budget enforcement for resource control

(limit: usize)

Source from the content-addressed store, hash-verified

75 /// - High-memory queries: 5GB (5 * 1024 * 1024 * 1024)
76 #[allow(dead_code)] // ROADMAP v0.5.0 - Memory budget enforcement for resource control
77 pub fn new(limit: usize) -> Self {
78 Self {
79 limit,
80 allocated: Arc::new(AtomicUsize::new(0)),
81 peak: Arc::new(AtomicUsize::new(0)),
82 }
83 }
84
85 /// Create an unlimited memory budget (for testing or admin queries)
86 #[allow(dead_code)] // ROADMAP v0.5.0 - Unlimited budget for admin operations and testing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected