Skip to content

DX: Use $tokens->getNamespaceDeclarations() to improve performance#6942

Merged
Wirone merged 1 commit intoPHP-CS-Fixer:masterfrom
staabm:ns
May 6, 2023
Merged

DX: Use $tokens->getNamespaceDeclarations() to improve performance#6942
Wirone merged 1 commit intoPHP-CS-Fixer:masterfrom
staabm:ns

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented May 6, 2023

use the new method in even more places to utilize its caching.

in my local testing its just 1% faster though.
So in the end it would be more about consistency, not performance - at least in my workload.

@staabm staabm marked this pull request as ready for review May 6, 2023 16:40
@Wirone Wirone merged commit c1470f1 into PHP-CS-Fixer:master May 6, 2023
@Wirone
Copy link
Copy Markdown
Member

Wirone commented May 6, 2023

Thank you @staabm 🍻

@staabm staabm deleted the ns branch May 6, 2023 16:53
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