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

chore: perf optimize arg formatting #1519

Closed
wants to merge 1 commit into from

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Feb 4, 2024

Format args should almost never be passed as references to the format! because that causes some performance (boxing) degradation due to how Rust handles it internally (unable to optimize).

In this PR I also removed a few trailing commas where they seemed to be incorrect.

Lastly, in pgrx-sql-entity-graph/src/pg_extern/mod.rs I removed to_string() as it seemed redundant (and also perf cost)

Format args should almost never be passed as references to the `format!` because that causes some performance (boxing) degradation due to how Rust handles it internally (unable to optimize).

In this PR I also removed a few trailing commas where they seemed to be incorrect.
@nyurik
Copy link
Contributor Author

nyurik commented Feb 6, 2024

Closing in favor of #1529, #1530, #1531, #1532

@workingjubilee should I delete that line or not? It is still present in one of these

@nyurik nyurik closed this Feb 6, 2024
@nyurik nyurik deleted the inline3 branch February 6, 2024 00:12
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