Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve code generation for HLE debug logging #19929

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Improve code generation for HLE debug logging #19929

merged 2 commits into from
Jan 28, 2025

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Jan 28, 2025

Should shrink code size a bit, not expecting much performance change.

This avoids (when optimization is enabled) emitting a DoLog call when MAX_LOGLEVEL excludes the log statement, just like for regular logs.

Also adds an error-to-string function that will come in handy soon.

Should shrink code size a bit, not expecting much performance change.

This avoids emitting a DoLog call when MAX_LOGLEVEL excludes the log statement,
just like for regular logs.
@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Jan 28, 2025
@hrydgard hrydgard added this to the v1.19.0 milestone Jan 28, 2025
@hrydgard hrydgard self-assigned this Jan 28, 2025
@hrydgard hrydgard merged commit b9decb2 into master Jan 28, 2025
19 checks passed
@hrydgard hrydgard deleted the log-optimize branch January 28, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant