Repository navigation
Skip AST dumps when verbose logging is disabled - #667
Merged
Merged
Conversation
Contributor
|
@perfloop-agent remove the benchmark dir from this PR |
Signed-off-by: Perfloop Agent <agent@perfloop.ai>
perfloop
Bot
force-pushed
the
perfloop-pr-open-fhsyy3fzjq
branch
from
November 19, 2026 18:25
dcb753a to
dd21dbf
Compare
Contributor
Author
|
The benchmark directory and its CMake target are removed from this update; the logging guard is unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With verbose logging disabled, translation still walks and formats syntax-tree dumps before sending them to a null stream. Skip that work before calling Clang's dumper, while retaining enabled verbose dumps and unconditional error reporting.
A local
DumpVerbosehelper covers free functions, C records, C++ records and C++ methods in the shared converter, so both translation models use the same gate. Each call stays at its existing position relative to conversion eligibility checks. The logging default is unchanged.Translating
tests/std/basic/basic.def.odr.cppthroughTranspileSrcwith default-disabled logging reduced median requested C++newbytes from 2,333,148 to 2,131,980 in refcount mode across 12 paired runs, and from 2,200,076 to 1,998,908 in unsafe mode across 13 paired runs. The measurement includes parsing, rule loading and conversion, but excludes input loading, rustfmt, directmalloccalls and aligned allocations.Whole-command timing remains inconclusive; no elapsed-time, CPU or peak-memory improvement is claimed.
Focused lit coverage for declarations, constructors, templates and cross-translation-unit methods passed all 10 tests, with no failures or skips.
Case and evidence
Made by Perfloop.