• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 26722632890
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: perf/lazy-param-scope-tracker
DEFAULT BRANCH: master
Ran 31 May 2026 07:45PM UTC
Jobs 30
Files 166
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 May 2026 07:45PM UTC coverage: 96.865% (+0.004%) from 96.861%
26722632890

Pull #2753

github

ericproulx
Lazy-allocate ParamScopeTracker's identity hashes

ParamScopeTracker eagerly built two {}.compare_by_identity hashes in its
constructor, so every validating request allocated both even though many
validators (presence, coercion of flat params) never touch either tracker.

Replace the eager initialize with memoized private accessors that allocate
each hash on first use. Behaviour is unchanged: reads still return nil /
EMPTY_PARAMS when nothing was stored.

In a mixed-endpoint memory_profiler run this drops the two allocation sites
from ~1,900 to ~500 objects each (~0.72 MB / ~2,800 fewer objects overall).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2753: Lazy-allocate ParamScopeTracker's identity hashes

1103 of 1193 branches covered (92.46%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

3531 of 3591 relevant lines covered (98.33%)

23292.46 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.15
0.7% lib/grape/exceptions/validation_errors.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_8_0.gemfile - 26722632890.1 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
2 run-4.0-gemfiles/dry_validation.gemfile - 26722632890.2 31 May 2026 07:46PM UTC 165
58.54
GitHub Action Run
3 run-3.3-gemfiles/rack_3_0.gemfile - 26722632890.3 31 May 2026 07:45PM UTC 165
95.67
GitHub Action Run
4 run-4.0-gemfiles/rack_3_0.gemfile - 26722632890.4 31 May 2026 07:46PM UTC 165
95.67
GitHub Action Run
5 run-4.0-gemfiles/grape_entity.gemfile - 26722632890.5 31 May 2026 07:46PM UTC 165
50.44
GitHub Action Run
6 run-4.0-gemfiles/rails_7_2.gemfile - 26722632890.6 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
7 run-3.4-Gemfile - 26722632890.7 31 May 2026 07:45PM UTC 165
95.67
GitHub Action Run
8 run-4.0-gemfiles/rails_8_1.gemfile - 26722632890.8 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
9 run-3.3-gemfiles/rails_8_1.gemfile - 26722632890.9 31 May 2026 07:45PM UTC 166
95.67
GitHub Action Run
10 run-4.0-Gemfile - 26722632890.10 31 May 2026 07:46PM UTC 165
95.67
GitHub Action Run
11 run-4.0-gemfiles/grape_swagger.gemfile - 26722632890.11 31 May 2026 07:46PM UTC 165
55.42
GitHub Action Run
12 run-4.0-gemfiles/multi_xml.gemfile - 26722632890.12 31 May 2026 07:46PM UTC 165
37.25
GitHub Action Run
13 run-4.0-gemfiles/multi_json.gemfile - 26722632890.13 31 May 2026 07:45PM UTC 165
37.25
GitHub Action Run
14 run-3.3-gemfiles/rack_3_2.gemfile - 26722632890.14 31 May 2026 07:45PM UTC 165
95.67
GitHub Action Run
15 run-3.4-gemfiles/rack_3_2.gemfile - 26722632890.15 31 May 2026 07:46PM UTC 165
95.67
GitHub Action Run
16 run-4.0-gemfiles/rack_3_2.gemfile - 26722632890.16 31 May 2026 07:46PM UTC 165
95.67
GitHub Action Run
17 run-3.3-gemfiles/rails_7_2.gemfile - 26722632890.17 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
18 run-3.4-gemfiles/rack_3_0.gemfile - 26722632890.18 31 May 2026 07:45PM UTC 165
95.67
GitHub Action Run
19 run-3.3-gemfiles/rack_2_2.gemfile - 26722632890.19 31 May 2026 07:45PM UTC 165
95.62
GitHub Action Run
20 run-3.4-gemfiles/rails_8_0.gemfile - 26722632890.20 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
21 run-4.0-gemfiles/hashie.gemfile - 26722632890.21 31 May 2026 07:46PM UTC 165
62.7
GitHub Action Run
22 run-3.3-gemfiles/rails_8_0.gemfile - 26722632890.22 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
23 run-3.4-gemfiles/rack_3_1.gemfile - 26722632890.23 31 May 2026 07:46PM UTC 165
95.67
GitHub Action Run
24 run-3.3-Gemfile - 26722632890.24 31 May 2026 07:45PM UTC 165
95.67
GitHub Action Run
25 run-3.3-gemfiles/rack_3_1.gemfile - 26722632890.25 31 May 2026 07:46PM UTC 165
95.67
GitHub Action Run
26 run-3.4-gemfiles/rails_8_1.gemfile - 26722632890.26 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
27 run-4.0-gemfiles/rack_2_2.gemfile - 26722632890.27 31 May 2026 07:46PM UTC 165
95.63
GitHub Action Run
28 run-3.4-gemfiles/rack_2_2.gemfile - 26722632890.28 31 May 2026 07:46PM UTC 165
95.63
GitHub Action Run
29 run-3.4-gemfiles/rails_7_2.gemfile - 26722632890.29 31 May 2026 07:46PM UTC 166
95.67
GitHub Action Run
30 run-4.0-gemfiles/rack_3_1.gemfile - 26722632890.30 31 May 2026 07:46PM UTC 165
95.67
GitHub Action Run
Source Files on build 26722632890
  • Tree
  • List 166
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26722632890
  • Pull Request #2753
  • PR Base - master (#26681995871)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc