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

chore: rebase "Optimise Imgix::Path#to_url by not generating the escaped query string twice" #109

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

sherwinski
Copy link
Contributor

Opened as a follow up to #103

Output:

```
❯ bundle exec ruby script/bench_to_url.rb
Warming up --------------------------------------
  Imgix::Path#to_url     1.683k i/100ms
Calculating -------------------------------------
  Imgix::Path#to_url     16.886k (± 0.6%) i/s -     85.833k in   5.083431s
```
Benchmark output:

```
❯ bundle exec ruby script/bench_to_url.rb
Warming up --------------------------------------
  Imgix::Path#to_url     2.731k i/100ms
Calculating -------------------------------------
  Imgix::Path#to_url     27.278k (± 0.7%) i/s -    136.550k in   5.006213s
```
@sherwinski sherwinski requested a review from a team as a code owner April 8, 2021 19:49
@commit-lint
Copy link

commit-lint bot commented Apr 8, 2021

Tests

  • add benchmark script for Imgix::Path#to_url (c168767)

Performance Improvements

  • avoid calculating path_and_params twice (fa23d93)

Contributors

stevehodgkiss

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

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