1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Compile-time sizing knobs: pre-allocation capacities and I/O buffer sizes.
//!
//! These are best-effort hints to size collections and buffers up front so
//! the hot paths reallocate less; they are not hard limits except where noted
//! (e.g. [`capacity::FILE_CACHE_SIZE`], which bounds the LRU).
/// Hash map backed by `ahash` for fast, non-cryptographic hashing.
///
/// Used in place of `std::collections::HashMap` on hot aggregation paths; the
/// keys here are not attacker-controlled, so DoS resistance is not required.
pub type FastHashMap<K, V> = AHashMap;
/// Hash set backed by `ahash` for fast, non-cryptographic hashing.
///
/// Used in place of `std::collections::HashSet` on the incremental scan path,
/// where the keys are process-local (not attacker-controlled).
pub type FastHashSet<T> = AHashSet;
/// Pre-allocation capacity hints to minimize reallocation overhead.
/// Buffer sizes for I/O operations.
/// TUI refresh cadences.