Skip to content

Commit fc94888

Browse files
committed
WIP
1 parent 0c4bc1f commit fc94888

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Install uv and set the latest supported Python version
7272
uses: astral-sh/setup-uv@v7
7373
with:
74-
python-version: 3.13
74+
python-version: 3.14
7575

7676
- name: Update to a Cargo version that supports 2024 edition
7777
run: rustup install 1.90.0 && rustup default 1.90.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ docs = [
6767
"sphinx-rtd-theme>=3.0.2",
6868
]
6969
benchmark_ci = [
70-
"pytest-codspeed>=3.2.0",
70+
"pytest-codspeed>=4.2.0",
7171
]
7272

7373
[tool.setuptools]

rust/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ default = ["extension-module"]
4040
[dev-dependencies]
4141
parameterized = "2.0.0"
4242
serde_json = "1.0.143"
43+
44+
[profile.release]
45+
# Temporary for profiling
46+
debug = true

rust/src/graph/cycle_breakers.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ impl Graph {
2020
if children.len() < 2 {
2121
return Ok(FxHashSet::default());
2222
}
23+
eprintln!("Building graph maps...");
2324
let (orig_imports, orig_reverse_imports, edge_weights) =
2425
self.build_graph_maps_of_children(children);
26+
eprintln!("Built.");
2527

2628
// Make a copy of the graph. We'll iteratively remove nodes from this.
2729
let mut working_imports = orig_imports.clone();
@@ -220,7 +222,7 @@ impl Graph {
220222

221223
if num_imports_from_a_to_b > 0 {
222224
// a depends on b - add it as an edge in our temporary graph.
223-
eprintln!("Adding {:?} -> {:?}", child_a, child_b);
225+
//eprintln!("Adding {:?} -> {:?}", child_a, child_b);
224226
orig_imports[*child_a].insert(*child_b);
225227
orig_reverse_imports[*child_b].insert(*child_a);
226228
weights.insert((*child_a, *child_b), num_imports_from_a_to_b);

0 commit comments

Comments
 (0)