Skip to content

[GR-82012] Guard logging calls on transition paths. - #1331

Merged
graalvmbot merged 1 commit into
masterfrom
fniephaus/GR-82012/logging-overhead
Nov 23, 2026
Merged

graalvmbot merged 1 commit into
masterfrom
fniephaus/GR-82012/logging-overhead

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

🤖 Guards 18 logging calls on GraalPy’s C API transition paths with LOGGER.isLoggable(...). This avoids allocating capturing lambdas when logging is disabled.

In interleaved A/B runs, the patch reduced runtime by 12.7% for c-ujson-loads and 17.1% for c-many-shortlived-objs.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 23, 2026
@graalvmbot
graalvmbot force-pushed the fniephaus/GR-82012/logging-overhead branch from a27f0cf to de3ede1 Compare November 23, 2026 09:30
@graalvmbot
graalvmbot merged commit f09e7f7 into master Nov 23, 2026
12 of 17 checks passed
@graalvmbot
graalvmbot deleted the fniephaus/GR-82012/logging-overhead branch November 23, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants