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

Optimization: Memoize SpecialSchemaLinks #19541

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

kamil-tekiela
Copy link
Contributor

Assuming that the Config doesn't change during the execution of getRowValues() the values should remain constant. There's no need to compile the list again and again for every row. This should improve the performance of the route=/sql by up to 10%.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Copy link
Member

@MauricioFauth MauricioFauth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thank you!

@MauricioFauth MauricioFauth merged commit 7630812 into phpmyadmin:master Jan 24, 2025
42 checks passed
@MauricioFauth MauricioFauth self-assigned this Jan 24, 2025
@MauricioFauth MauricioFauth added this to the 6.0.0 milestone Jan 24, 2025
@kamil-tekiela kamil-tekiela deleted the SpecialSchemaLinks branch January 24, 2025 18:17
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.

2 participants