Skip to content

Conversation

@schneems
Copy link
Collaborator

While adding new lines we can first check if ALL of them are valid. If so we can skip repeatedly calling ripper to check CodeBlock#valid?

Before: Finished in 1.43 seconds (files took 0.14836 seconds to load)
After: Finished in 1.17 seconds (files took 0.15893 seconds to load)

While adding new lines we can first check if ALL of them are valid. If so we can skip repeatedly calling ripper to check `CodeBlock#valid?`


Before: Finished in 1.43 seconds (files took 0.14836 seconds to load)
After:  Finished in 1.17 seconds (files took 0.15893 seconds to load)
@schneems schneems merged commit 365fc24 into main Jan 11, 2022
@schneems schneems deleted the schneems/greedy-new-lines branch January 11, 2022 16:07
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