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

Improve performance of trim 68x on large strings #18

Merged
merged 1 commit into from
Jun 11, 2020

Conversation

brockn
Copy link

@brockn brockn commented Jun 10, 2020

Large SQL statement, around 6000 lines.

Warmup 50K runs then each run 50K times:

Elapsed time trimEnd: 22064ms
Elapsed time trimEnd: 323ms

Change-Id: I8d6022d9bf05275ac358ee735882682a1fc1b0d0
@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #18 into master will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #18      +/-   ##
============================================
+ Coverage     92.94%   93.00%   +0.05%     
- Complexity      193      197       +4     
============================================
  Files            17       17              
  Lines           468      472       +4     
  Branches         34       35       +1     
============================================
+ Hits            435      439       +4     
  Misses           24       24              
  Partials          9        9              
Impacted Files Coverage Δ Complexity Δ
...ub/vertical_blank/sqlformatter/core/util/Util.java 63.63% <100.00%> (+8.08%) 11.00 <5.00> (+4.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 56eafdb...0499acf. Read the comment docs.

@brockn brockn changed the title Improve performance of trim 25x on large strings Improve performance of trim 50x on large strings Jun 10, 2020
@brockn brockn changed the title Improve performance of trim 50x on large strings Improve performance of trim 68x on large strings Jun 10, 2020
@vertical-blank
Copy link
Owner

LGTM
Thanks @brockn !

@vertical-blank vertical-blank merged commit 816a753 into vertical-blank:master Jun 11, 2020
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