Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4cccba88d21b
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e5d2c30a9b97
Choose a head ref
  • 8 commits
  • 8 files changed
  • 1 contributor

Commits on Dec 27, 2015

  1. Copy the full SHA
    50f6a5f View commit details
  2. Copy the full SHA
    247582e View commit details
  3. Faster impl (10x) of hash_le using Set.containsAll.

    For benchmark:
    
    ```ruby
    hash1 = {}
    1000.times.map{|i| hash1[i] = i**2}
    hash2 = hash1.dup
    loop {
      puts Benchmark.measure {
        1000.times { hash1 <= hash2 }
      }
    }
    ```
    
    Before:
    
    ```
      0.750000   0.040000   0.790000 (  0.352352)
      0.330000   0.020000   0.350000 (  0.271167)
      0.290000   0.010000   0.300000 (  0.254097)
      0.300000   0.020000   0.320000 (  0.285778)
      0.370000   0.010000   0.380000 (  0.261517)
    ```
    
    After:
    
    ```
      0.180000   0.010000   0.190000 (  0.049955)
      0.090000   0.000000   0.090000 (  0.026507)
      0.070000   0.000000   0.070000 (  0.024796)
      0.050000   0.000000   0.050000 (  0.024865)
      0.050000   0.010000   0.060000 (  0.024754)
    ```
    
    MRI 2.3:
    
    ```
      0.030000   0.000000   0.030000 (  0.028554)
      0.030000   0.000000   0.030000 (  0.028792)
      0.030000   0.000000   0.030000 (  0.029427)
      0.030000   0.000000   0.030000 (  0.027711)
      0.030000   0.000000   0.030000 (  0.028578)
    ```
    headius committed Dec 27, 2015
    Copy the full SHA
    cc23c68 View commit details
  4. Copy the full SHA
    4886125 View commit details
  5. Copy the full SHA
    27425c2 View commit details
  6. Copy the full SHA
    7e11bab View commit details
  7. Copy the full SHA
    d87e33e View commit details
  8. Copy the full SHA
    e5d2c30 View commit details
Loading