MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / project

Function project

crates/execution/src/pipelined.rs:1134–1138  ·  view source on GitHub ↗

A wrapper around [ProjectField] that increments a counter by the size of the projected value

(row: &impl ProjectField, field: &TupleField, bytes_scanned: &mut usize)

Source from the content-addressed store, hash-verified

1132
1133/// A wrapper around [ProjectField] that increments a counter by the size of the projected value
1134fn project(row: &impl ProjectField, field: &TupleField, bytes_scanned: &mut usize) -> AlgebraicValue {
1135 let value = row.project(field);
1136 *bytes_scanned += value.size_of();
1137 value
1138}

Callers 1

executeMethod · 0.85

Calls 2

size_ofMethod · 0.80
projectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…