Skip to content

Log leaf-node reduction at INFO level - #103

Open
StefanZoerner wants to merge 1 commit into
FSoft-AI4Code:mainfrom
StefanZoerner:improve/log-leaf-node-reduction
Open

Log leaf-node reduction at INFO level#103
StefanZoerner wants to merge 1 commit into
FSoft-AI4Code:mainfrom
StefanZoerner:improve/log-leaf-node-reduction

Conversation

@StefanZoerner

Copy link
Copy Markdown

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.

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.

1 participant