MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / runtime

Function runtime

nodedb-vector/src/distance/simd/runtime.rs:129–131  ·  view source on GitHub ↗

Get the global SIMD runtime (auto-detects on first call).

()

Source from the content-addressed store, hash-verified

127
128/// Get the global SIMD runtime (auto-detects on first call).
129pub fn runtime() -> &'static SimdRuntime {
130 RUNTIME.get_or_init(SimdRuntime::detect)
131}
132
133#[cfg(test)]
134mod tests {

Callers 7

l2_matches_scalarFunction · 0.70
cosine_matches_scalarFunction · 0.70
ip_matches_scalarFunction · 0.70
small_vectorsFunction · 0.70
distanceFunction · 0.50
distance_typedFunction · 0.50
distanceFunction · 0.50

Calls

no outgoing calls

Tested by 4

l2_matches_scalarFunction · 0.56
cosine_matches_scalarFunction · 0.56
ip_matches_scalarFunction · 0.56
small_vectorsFunction · 0.56