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

Commits on Jul 1, 2016

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

    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 committed Jul 1, 2016
    Copy the full SHA
    6123e14 View commit details
    Browse the repository at this point in the history
  2. Force gem version based on Ruby version in Travis

    - Rack < 2.0 for Ruby < 2.2.2
    - Json < 2.0 for Ruby < 2.0
    schneems committed Jul 1, 2016
    Copy the full SHA
    f2e3623 View commit details
    Browse the repository at this point in the history