FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Comparing main...hash-values-compact-benchmark · fastruby/fast-ruby · GitHub

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: fastruby/fast-ruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
Could not load branches
Nothing to show
{{ refName }}
...
head repository: fastruby/fast-ruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: hash-values-compact-benchmark
Choose a head ref
Could not load branches
Nothing to show
{{ refName }}
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 2 contributors

Commits on Jun 28, 2026

  1. Add Hash#values.compact vs select benchmark for non-nil values

    Builds on the idea from #124 (sFrenkie), comparing three ways to collect
    the non-nil values of a hash:
    
    - Hash#select { |_k, v| v }.values
    - Hash#values.select { |v| v }
    - Hash#values.compact
    
    Uses data that actually contains nil values so all three return the same
    result, plus an equivalence guard, making it a fair comparison.
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    etagwerker and claude committed Jun 28, 2026
    Configuration menu
    Copy the full SHA
    03fadd7 View commit details
    Browse the repository at this point in the history
Loading

Back | FazBrowse Home | New Git URL