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

Backport #331 - Asset lookup 4x Faster in large directories #336

Merged
merged 2 commits into from
Jul 1, 2016

Conversation

schneems
Copy link
Member

@schneems schneems commented Jul 1, 2016

With this patch using the benchmark script https://github.com/schneems/sprockets-3.x-performance-regressions:

1500 lookups of the same asset took 2.900005
1500 lookups of 1500 different assets took 2.746331

Without this patch using the benchmark script:

1500 lookups of the same asset took 12.361615
1500 lookups of 1500 different assets took 12.627099

Which is a 4x speed bump.

@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 3.x. Please double check that you specified the right target!

@schneems schneems force-pushed the schneems/fix-asset-lookup-perf-3.x branch from 2cdaaec to 4955eff Compare July 1, 2016 17:03
@schneems schneems changed the title Backport #331 Backport #331 - Asset lookup 4x Faster Jul 1, 2016
@schneems schneems changed the title Backport #331 - Asset lookup 4x Faster Backport #331 - Asset lookup 4x Faster in large directories Jul 1, 2016
With this patch using the benchmark script https://github.com/schneems/sprockets-3.x-performance-regressions:

```
1500 lookups of the same asset took 2.900005
1500 lookups of 1500 different assets took 2.746331
```

Without this patch using the benchmark script:

```
1500 lookups of the same asset took 12.361615
1500 lookups of 1500 different assets took 12.627099
```

Which is a 4x speed bump.
@schneems schneems force-pushed the schneems/fix-asset-lookup-perf-3.x branch 2 times, most recently from ee62440 to a591ab7 Compare July 1, 2016 17:44
- Rack < 2.0 for Ruby < 2.2.2
- Json < 2.0 for Ruby < 2.0
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