Skip to main content

_diffctx/config/
graph_filtering.rs

1use once_cell::sync::Lazy;
2
3pub struct GraphFilteringConfig {
4    pub hub_out_degree_threshold: usize,
5    pub fallback_max_files: usize,
6    pub min_lines_for_signature: u32,
7    pub max_cache_bytes: usize,
8}
9
10impl Default for GraphFilteringConfig {
11    fn default() -> Self {
12        Self {
13            hub_out_degree_threshold: 3,
14            fallback_max_files: 10_000,
15            min_lines_for_signature: 5,
16            max_cache_bytes: 200 * 1024 * 1024,
17        }
18    }
19}
20
21pub static GRAPH_FILTERING: Lazy<GraphFilteringConfig> = Lazy::new(GraphFilteringConfig::default);