Skip to content

Include estimated build time of subtree in the edge weight heuristic#2686

Open
PowellNGL wants to merge 1 commit intoninja-build:masterfrom
PowellNGL:master
Open

Include estimated build time of subtree in the edge weight heuristic#2686
PowellNGL wants to merge 1 commit intoninja-build:masterfrom
PowellNGL:master

Conversation

@PowellNGL
Copy link

As described in #2682, this change uses the estimated build time of a subtree (measured during the previous run) as the scheduler heuristic instead of just its depth. This can make rebuilds faster by starting the critical path as early as possible

@jhasse jhasse added this to the 1.14.0 milestone Oct 27, 2025
@@ -468,7 +468,9 @@ namespace {
// Heuristic for edge priority weighting.
// Phony edges are free (0 cost), all other edges are weighted equally.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// ... all other edges are weighted equally.

This comment is outdated and could be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants