Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/consistent-milk12/masstree
/ functions
Functions
2,313 in github.com/consistent-milk12/masstree
⨍
Functions
2,313
◇
Types & classes
187
↓ 589 callers
Method
guard
(&self)
src/tree/generic.rs:112
↓ 377 callers
Method
insert_with_guard
Insert a key-value pair using an explicit guard. This is the main public insert API for `MassTreeGeneric`. # Panics Panics on internal tree corrupt
src/tree/generic.rs:662
↓ 348 callers
Method
insert
(&self, key: &[u8], value: P::Value)
src/tree/generic.rs:631
↓ 290 callers
Method
get_with_guard
(&self, key: &[u8], guard: &LocalGuard<'_>)
src/tree/generic/optimistic_reads/get_guarded.rs:28
↓ 288 callers
Method
iter
Iterate over all entries. Equivalent to unbounded `range()`. ```ignore let guard = tree.guard(); let count = tree.iter(&guard).count();
src/tree/range/api.rs:87
↓ 205 callers
Method
as_bytes
(&self)
benches/mttest.rs:226
↓ 197 callers
Method
push
(&mut self, ctx: LayerContext<P>)
src/tree/range/scan_state.rs:415
↓ 186 callers
Method
get
(&self, slot: usize)
src/suffix.rs:270
↓ 174 callers
Method
load
(&self, order: Ordering)
src/permuter.rs:515
↓ 168 callers
Method
insert
(&mut self, value: P::Value)
src/tree/generic/entry.rs:265
↓ 153 callers
Method
len
(&self)
src/key.rs:89
↓ 152 callers
Method
is_null
(&self)
src/tree/range/scan_state.rs:263
↓ 144 callers
Function
uniform_indices
(n: usize, count: usize, seed: u64)
benches/bench_utils.rs:183
↓ 119 callers
Method
version
(&self)
src/tree/range/scan_state.rs:223
↓ 111 callers
Function
post_measurement_barrier
()
benches/bench_utils.rs:773
↓ 111 callers
Function
pre_measurement_barrier
()
benches/bench_utils.rs:767
↓ 107 callers
Method
as_ref
(&self)
src/suffix.rs:543
↓ 107 callers
Method
load
(&self, slot: usize)
src/policy/box_values.rs:202
↓ 100 callers
Method
begin_measurement
Synchronize all threads and begin the measurement phase. Inserts a memory barrier to prevent reordering, then waits for all threads.
benches/bench_utils.rs:859
↓ 100 callers
Method
end_measurement
End the measurement phase with a memory barrier.
benches/bench_utils.rs:865
↓ 100 callers
Method
finish_warmup
Signal that this thread has completed its warmup phase. Blocks until all threads have finished warmup.
benches/bench_utils.rs:853
↓ 100 callers
Function
run_concurrent
Run a concurrent benchmark with proper thread management.
benches/bench_utils.rs:878
↓ 93 callers
Method
store
(&self, val: Permuter<WIDTH>, order: Ordering)
src/permuter.rs:521
↓ 73 callers
Method
take
(&self, slot: usize)
src/policy/box_values.rs:278
↓ 72 callers
Method
remove
(self)
src/tree/generic/entry.rs:287
↓ 67 callers
Method
store
(&self, slot: usize, output: &ValuePtr<V>)
src/policy/box_values.rs:224
↓ 65 callers
Method
get
(&self)
src/tree/generic/entry.rs:226
↓ 55 callers
Method
set_ikey
(&self, i: usize, ikey: u64)
src/internode/accessors.rs:100
↓ 55 callers
Method
stable
(&self)
src/nodeversion/loom_tests.rs:78
↓ 54 callers
Method
assign
(&self, p: usize, ikey: u64, right_child: *mut u8)
src/internode/accessors.rs:247
↓ 49 callers
Method
remove_with_guard
Remove a key using an existing guard. # Errors If fails to remove
src/tree/generic.rs:804
↓ 48 callers
Method
set_child
(&self, i: usize, child: *mut u8)
src/internode/accessors.rs:237
↓ 47 callers
Method
size
(&self)
src/internode/accessors.rs:45
↓ 46 callers
Function
prefetch_read
(ptr: *const T)
src/prefetch.rs:6
↓ 43 callers
Method
entry_with_guard
( &'t self, key: &'e [u8], guard: &'e LocalGuard<'t>, )
src/tree/generic.rs:911
↓ 43 callers
Method
ikey
(&self)
src/tree/generic/batch.rs:108
↓ 42 callers
Method
lock
(&self)
src/nodeversion/loom_tests.rs:89
↓ 42 callers
Method
permutation
(&self)
src/leaf15.rs:989
↓ 41 callers
Method
clone
(&self)
src/policy.rs:77
↓ 40 callers
Method
checksum
(&self)
benches/concurrent_read_write.rs:48
↓ 40 callers
Function
shuffled_write_decisions
Generate a shuffled array of operation types (true = write, false = read).
benches/concurrent_read_write.rs:162
↓ 36 callers
Method
extend
Extends the tree with key-value pairs from an iterator. # Example ```rust use masstree::MassTree; let mut tree: MassTree<u64> = MassTree::new(); tr
src/tree/generic.rs:999
↓ 36 callers
Function
init_tracing
Initialize the tracing subscriber with file and console logging. Safe to call multiple times - only the first call takes effect. Logs are written to
tests/common/mod.rs:61
↓ 36 callers
Method
process_coalesce
(&self, guard: &LocalGuard<'_>)
src/tree/generic.rs:165
↓ 35 callers
Method
value
(&self)
src/permuter.rs:192
↓ 34 callers
Method
checksum
(&self)
benches/concurrent_read_write_general.rs:92
↓ 34 callers
Method
mark_exhausted
(&mut self)
src/tree/range/iterator/iter_flags.rs:104
↓ 34 callers
Function
shuffled_write_decisions
Generate a shuffled array of operation types (true = write, false = read).
benches/concurrent_read_write_general.rs:173
↓ 32 callers
Method
as_slice
(&self)
src/tree/generic/batch.rs:46
↓ 32 callers
Method
count
(&self)
src/suffix.rs:154
↓ 32 callers
Method
ikey_relaxed
(&self, slot: usize)
src/leaf15.rs:786
↓ 32 callers
Method
scan_prefix
Scan all entries matching a prefix. ```ignore let guard = tree.guard(); tree.scan_prefix(b"user:", |key, value| { println!("User key: {:?}", key); tr
src/tree/range/api.rs:320
↓ 32 callers
Method
try_assign
(&self, slot: usize, suffix: &[u8])
src/suffix/inline.rs:391
↓ 31 callers
Method
set_nkeys
(&self, n: u8)
src/internode/accessors.rs:259
↓ 31 callers
Method
shift
(&mut self)
src/tree/range/cursor_key.rs:222
↓ 30 callers
Method
scan_values
Value-only scan — fastest when you don't need keys. Skips key materialization (~1.5-2x faster than `scan_intra_leaf_batch` for 64-byte keys). Ideal f
src/tree/range/api.rs:274
↓ 28 callers
Method
insert_batch
Insert multiple key-value pairs in a single batch operation. # Example ```rust use masstree::MassTree15; let tree: MassTree15<u64> = MassTree15::ne
src/tree/generic/batch.rs:672
↓ 27 callers
Method
ikey_bound
(&self)
src/leaf15.rs:933
↓ 26 callers
Method
has_changed
(&self, old: u32)
src/nodeversion/loom_tests.rs:143
↓ 25 callers
Method
assign_store_ikey
(&mut self, ikey: u64)
src/tree/range/cursor_key.rs:294
↓ 24 callers
Method
clone
(&self)
src/tree/range/scan_state.rs:108
↓ 24 callers
Method
is_deleted
(&self)
src/nodeversion.rs:246
↓ 24 callers
Method
range
Create an iterator over a key range, yielding [`ScanEntry`] items with owned keys and cloned values in lexicographic order. # Example ```ignore let
src/tree/range/api.rs:47
↓ 23 callers
Method
full_key_unchecked
(&self)
src/tree/range/cursor_key.rs:151
↓ 23 callers
Function
is_write_op
(i: usize, write_pct: u32)
benches/tail_latency.rs:151
↓ 23 callers
Method
load_root_ptr_generic
(&self, _guard: &LocalGuard<'_>)
src/tree/generic.rs:211
↓ 23 callers
Method
mark_insert
(&mut self)
src/nodeversion/loom_tests.rs:56
↓ 22 callers
Method
exhausted
(self)
src/tree/range/iterator/iter_flags.rs:52
↓ 22 callers
Function
zipfian_indices
(n: usize, count: usize, s: f64, seed: u64)
benches/bench_utils.rs:165
↓ 21 callers
Method
keylenx_relaxed
(&self, slot: usize)
src/leaf15.rs:900
↓ 21 callers
Function
unlikely
(b: bool)
src/hints.rs:21
↓ 20 callers
Method
add_benchmark
(&mut self, name: &str, trial: u64, thread_results: Vec<ThreadResult>)
benches/mttest.rs:341
↓ 20 callers
Method
cmp
(&self, other: &Self)
src/policy.rs:135
↓ 20 callers
Method
has_suffix
(&self)
src/tree/generic/batch.rs:114
↓ 20 callers
Method
insert_from_back
(&mut self, i: usize)
src/permuter.rs:266
↓ 20 callers
Method
len
(&self)
src/tree/generic.rs:141
↓ 20 callers
Method
len
(&self)
src/tree/range/scan_state.rs:462
↓ 20 callers
Function
make_key
(prefix: &[u8], val: u64)
tests/cpp/wd3.rs:21
↓ 20 callers
Method
set_parent
(ptr: *mut u8, parent: *mut u8, is_leaf: bool)
src/tree/split/propagation.rs:276
↓ 20 callers
Function
shuffled_write_decisions
Generate a shuffled array of operation types (true = write, false = read).
benches/high_impact.rs:134
↓ 19 callers
Method
add
(&self, val: isize)
src/shard_counter.rs:120
↓ 19 callers
Method
assign_store_length
(&mut self, len: usize)
src/tree/range/cursor_key.rs:326
↓ 19 callers
Method
increment
(&self)
src/shard_counter.rs:105
↓ 19 callers
Method
load_layer_raw
(&self, slot: usize)
src/leaf15.rs:379
↓ 19 callers
Function
make_key
(i: u64)
examples/rayon_parallel.rs:27
↓ 19 callers
Method
nkeys
(&self)
src/internode/accessors.rs:38
↓ 19 callers
Method
reach_leaf_concurrent_generic
( &self, start: *const u8, key: &Key<'_>, _is_sublayer: bool, guard: &
src/tree/generic.rs:305
↓ 19 callers
Method
scan_prefix_values
Value-only prefix scan (no key materialization). Like [`scan_prefix`](Self::scan_prefix) but skips building key bytes. End bound is **exact** for ik
src/tree/range/api.rs:348
↓ 19 callers
Method
set_leaf
(&mut self, leaf: *mut LeafNode15<P>)
src/tree/range/scan_state.rs:279
↓ 19 callers
Function
setup_masstree15_inline
(keys: &[[u8; K]])
benches/range_masstree15.rs:68
↓ 18 callers
Method
as_ptr
(self)
src/policy.rs:67
↓ 18 callers
Method
for_each
(mut self, mut visitor: F)
src/tree/range/iterator/batch_forward.rs:25
↓ 18 callers
Method
is_empty
(&self)
src/key.rs:124
↓ 18 callers
Method
len
Get cache size
examples/url_cache.rs:263
↓ 18 callers
Function
setup_tree_index
(keys: &[[u8; K]])
benches/range_masstree15.rs:79
↓ 18 callers
Method
verify_guard
(&self, guard: &LocalGuard<'_>)
src/tree/generic.rs:228
↓ 17 callers
Method
contains
(&self, key: &[u8])
src/tree/range/iterator/range_bound.rs:59
↓ 17 callers
Method
insert_value_with_guard
Insert a key-value pair using an explicit guard, returning the old value. Unlike `insert_with_guard` (which returns `Option<P::Output>`), this return
src/tree/generic.rs:722
↓ 17 callers
Method
snapshot
(&self)
benches/memory_total.rs:60
↓ 17 callers
Method
update_state
( &mut self, version: u32, perm: <LeafNode15<P> as TreeLeafNode<P>>::Perm, ki:
src/tree/range/scan_state.rs:324
next →
1–100 of 2,313, ranked by callers