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

ArrayIndentationFixer - fix for really long arrays #5688

Merged
merged 1 commit into from
Jun 4, 2021
Merged

ArrayIndentationFixer - fix for really long arrays #5688

merged 1 commit into from
Jun 4, 2021

Conversation

kubawerlos
Copy link
Contributor

@kubawerlos kubawerlos commented May 5, 2021

Reference: https://github.com/aws/aws-sdk-php/blob/3.180.2/src/data/ec2/2016-11-15/api-2.json.php

Code in test case has 100k tokens, code from reference file has 174k tokens.

Without the fix the newly added tests was taking around 1700 seconds (for each [ it was searching for new line before it - token by token).

@kubawerlos kubawerlos changed the base branch from 3.0 to 2.19 May 5, 2021 16:15
@kubawerlos kubawerlos closed this May 5, 2021
@kubawerlos kubawerlos reopened this May 5, 2021
@coveralls
Copy link

coveralls commented May 5, 2021

Coverage Status

Coverage decreased (-0.001%) to 91.548% when pulling e17cdb2 on kubawerlos:fix_ArrayIndentationFixer into f196ab0 on FriendsOfPHP:2.19.

phpunit.xml.dist Outdated Show resolved Hide resolved
@kubawerlos kubawerlos marked this pull request as ready for review May 5, 2021 22:16
@kubawerlos kubawerlos added this to the 2.19.1 milestone May 5, 2021
@keradus
Copy link
Member

keradus commented Jun 4, 2021

Thank you @kubawerlos.

@keradus keradus merged commit 001d134 into PHP-CS-Fixer:2.19 Jun 4, 2021
@kubawerlos kubawerlos deleted the fix_ArrayIndentationFixer branch June 9, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants