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

Method new

graphlite/src/plan/pattern_optimization/cost_estimation.rs:52–64  ·  view source on GitHub ↗
(
        operations: f64,
        memory_bytes: u64,
        intermediate_results: u64,
        confidence: f64,
    )

Source from the content-addressed store, hash-verified

50
51impl ExecutionCost {
52 pub fn new(
53 operations: f64,
54 memory_bytes: u64,
55 intermediate_results: u64,
56 confidence: f64,
57 ) -> Self {
58 Self {
59 operations,
60 memory_bytes,
61 intermediate_results,
62 confidence,
63 }
64 }
65
66 /// Calculate total cost score for comparison (lower is better)
67 pub fn total_cost(&self) -> f64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected