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

Method add

graphlite/src/plan/cost.rs:104–110  ·  view source on GitHub ↗

Add another cost estimate to this one

(&mut self, other: &CostEstimate)

Source from the content-addressed store, hash-verified

102
103 /// Add another cost estimate to this one
104 pub fn add(&mut self, other: &CostEstimate) {
105 self.cpu_cost += other.cpu_cost;
106 self.io_cost += other.io_cost;
107 self.memory_cost += other.memory_cost;
108 self.network_cost += other.network_cost;
109 self.total_time += other.total_time;
110 }
111
112 /// Calculate total cost as weighted sum
113 pub fn total_cost(&self) -> f64 {

Callers 7

estimate_node_costMethod · 0.45
create_sessionMethod · 0.45
createSessionMethod · 0.45
parseVariablesMethod · 0.45
parseRowsMethod · 0.45
unwrapMethod · 0.45
columnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected