Skip to content

Log leaf-node reduction at INFO level - #103

Merged
anhnh2002 merged 2 commits into
FSoft-AI4Code:mainfrom
StefanZoerner:improve/log-leaf-node-reduction
Sep 7, 2026
Merged

Log leaf-node reduction at INFO level#103
anhnh2002 merged 2 commits into
FSoft-AI4Code:mainfrom
StefanZoerner:improve/log-leaf-node-reduction

Conversation

@StefanZoerner

Copy link
Copy Markdown
Contributor

When the candidate set crosses LEAF_REDUCTION_THRESHOLD (400), the pruning to graph roots can shrink it dramatically. On a C++ repository I was looking at (umoria), from 770 to 27 nodes. That reduction is currently logged at DEBUG, so at normal verbosity there is no indication it happened; only the collapsed count shows up downstream.

This change raises the message to INFO, includes the threshold so the number can be put in context, and adds a second line with the resulting count.

This is a small part of #101, which I closed after the discussion there.

StefanZoerner and others added 2 commits September 5, 2026 08:37
CI lints every changed file in full. Replace typing.Dict/List/Set with
builtin generics, iterate acyclic_graph.values() where the key was unused
(PERF102), and apply ruff format; no behavior change.
@anhnh2002
anhnh2002 merged commit bb4ded0 into FSoft-AI4Code:main Sep 7, 2026
2 checks passed
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.

2 participants