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

Reuse the SqlFormatter instance #1436

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

derrabus
Copy link
Member

Q A
Type improvement
BC Break no
Fixed issues N/A

Summary

SqlFormatter has a heavy constructor that compiles a couple of regular expressions. We can achieve a little speedup by reusing the formatter instance.

@derrabus

This comment was marked as resolved.

@derrabus derrabus requested a review from greg0ire June 26, 2024 08:33
@derrabus derrabus force-pushed the improvement/cache-formatter branch from d7232d3 to c01b5d3 Compare June 26, 2024 08:36
@derrabus derrabus merged commit cb93a3c into doctrine:3.8.x Jun 26, 2024
11 checks passed
@derrabus derrabus deleted the improvement/cache-formatter branch June 26, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants