Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosdata/cosdata
/ len
Method
len
src/models/atomic_array.rs:57–64 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
55
}
56
57
pub fn len(&self) -> usize {
58
for i in 0..N {
59
if self.items[i].load(Ordering::SeqCst).is_null() {
60
return i;
61
}
62
}
63
N
64
}
65
66
pub fn last(&self) -> Option<*mut T> {
67
for i in (0..N).rev() {
Callers
15
multiply_quantized_vectors
Function · 0.45
cosine_similarity_new
Function · 0.45
quantize_to_u32_bits
Function · 0.45
project_vector_to_x
Function · 0.45
make_index
Function · 0.45
calculate_hypothetical_centroid
Method · 0.45
update_centroid
Method · 0.45
sum_all_centroids
Method · 0.45
insert_vector
Method · 0.45
update_results
Function · 0.45
exhaustive_search
Function · 0.45
kmeans_scalar
Function · 0.45
Calls
1
load
Method · 0.80
Tested by
1
assert_eq
Method · 0.36