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

ruby-grape / grape / 26494474144
97%

Build:
DEFAULT BRANCH: master
Ran 27 May 2026 06:20AM UTC
Jobs 38
Files 0
Run time –
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

pending completion
26494474144

push

github

web-flow
Lazy-allocate `@api_class` and `@point_in_time_copies` on InheritableSetting (#2740)

`InheritableSetting#initialize` used to eagerly allocate both fields up
front. Neither is touched on most settings layers:

- `@api_class` is only written by external code (e.g. plugins) via
  `setting.api_class[:k] = v`; nothing in `lib/` writes to it.
- `@point_in_time_copies` only fills up on settings that get cloned via
  `point_in_time_copy` — typically the API-class-level setting, not the
  per-endpoint copies that make up the bulk of allocations at boot.

Switch both to memoizing readers (`@x ||= …`), drop the eager init, and
rewrite the `inherit_from` propagation loop to access the ivar directly
with `&.each` so the no-copies path doesn't allocate the Array just to
iterate zero elements.

Measured against master:

  Grape::Util::InheritableSetting.new × 100
    before: 1600 objects, 183.6 kB
    after:  1400 objects, 164.1 kB   (-11%)

Stacks with #2739 (lazy `@new_values`) for compounded boot-time savings.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Jobs
ID Job ID Ran Files Coverage
1 run-3.2-gemfiles/rails_8_0.gemfile - 26494474144.1 27 May 2026 06:20AM UTC 165
95.75
GitHub Action Run
2 run-4.0-gemfiles/rack_3_0.gemfile - 26494474144.2 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
3 run-4.0-gemfiles/multi_xml.gemfile - 26494474144.3 27 May 2026 06:20AM UTC 164
36.74
GitHub Action Run
4 run-3.2-gemfiles/rack_3_0.gemfile - 26494474144.4 27 May 2026 06:20AM UTC 164
95.74
GitHub Action Run
5 run-4.0-Gemfile - 26494474144.5 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
6 run-3.4-gemfiles/rack_3_1.gemfile - 26494474144.6 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
7 run-3.4-gemfiles/rack_3_2.gemfile - 26494474144.7 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
8 run-3.3-gemfiles/rails_8_0.gemfile - 26494474144.8 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
9 run-4.0-gemfiles/hashie.gemfile - 26494474144.9 27 May 2026 06:20AM UTC 164
62.6
GitHub Action Run
10 run-3.2-gemfiles/rack_3_2.gemfile - 26494474144.10 27 May 2026 06:20AM UTC 164
95.74
GitHub Action Run
11 run-3.4-gemfiles/rack_3_0.gemfile - 26494474144.11 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
12 run-4.0-gemfiles/grape_entity.gemfile - 26494474144.12 27 May 2026 06:20AM UTC 164
50.45
GitHub Action Run
13 run-3.2-gemfiles/rails_8_1.gemfile - 26494474144.13 27 May 2026 06:20AM UTC 165
95.75
GitHub Action Run
14 run-3.4-gemfiles/rails_7_2.gemfile - 26494474144.14 27 May 2026 06:20AM UTC 165
GitHub Action Run
15 run-4.0-gemfiles/grape_swagger.gemfile - 26494474144.15 27 May 2026 06:20AM UTC 164
55.4
GitHub Action Run
16 run-3.3-gemfiles/rails_7_2.gemfile - 26494474144.16 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
17 run-3.4-gemfiles/rails_8_0.gemfile - 26494474144.17 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
18 run-4.0-gemfiles/dry_validation.gemfile - 26494474144.18 27 May 2026 06:20AM UTC 164
58.42
GitHub Action Run
19 run-3.4-gemfiles/rails_8_1.gemfile - 26494474144.19 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
20 run-3.3-gemfiles/rack_3_0.gemfile - 26494474144.20 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
21 run-3.4-gemfiles/rack_2_2.gemfile - 26494474144.21 27 May 2026 06:20AM UTC 164
95.66
GitHub Action Run
22 run-4.0-gemfiles/rack_2_2.gemfile - 26494474144.22 27 May 2026 06:20AM UTC 164
95.66
GitHub Action Run
23 run-3.2-gemfiles/rails_7_2.gemfile - 26494474144.23 27 May 2026 06:20AM UTC 165
95.75
GitHub Action Run
24 run-3.2-gemfiles/rack_3_1.gemfile - 26494474144.24 27 May 2026 06:20AM UTC 164
95.74
GitHub Action Run
25 run-4.0-gemfiles/rails_7_2.gemfile - 26494474144.25 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
26 run-3.2-Gemfile - 26494474144.26 27 May 2026 06:20AM UTC 164
95.74
GitHub Action Run
27 run-3.3-gemfiles/rails_8_1.gemfile - 26494474144.27 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
28 run-3.2-gemfiles/rack_2_2.gemfile - 26494474144.28 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
29 run-4.0-gemfiles/multi_json.gemfile - 26494474144.29 27 May 2026 06:20AM UTC 164
36.74
GitHub Action Run
30 run-4.0-gemfiles/rails_8_1.gemfile - 26494474144.30 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
31 run-4.0-gemfiles/rails_8_0.gemfile - 26494474144.31 27 May 2026 06:20AM UTC 165
95.7
GitHub Action Run
32 run-4.0-gemfiles/rack_3_1.gemfile - 26494474144.32 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
33 run-3.3-gemfiles/rack_3_1.gemfile - 26494474144.33 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
34 run-3.3-gemfiles/rack_3_2.gemfile - 26494474144.34 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
35 run-3.3-Gemfile - 26494474144.35 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
36 run-3.3-gemfiles/rack_2_2.gemfile - 26494474144.36 27 May 2026 06:20AM UTC 164
95.66
GitHub Action Run
37 run-4.0-gemfiles/rack_3_2.gemfile - 26494474144.37 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
38 run-3.4-Gemfile - 26494474144.38 27 May 2026 06:20AM UTC 164
95.7
GitHub Action Run
Source Files on build 26494474144
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #26494474144
  • 9e23b68a on github
  • Prev Build on master (#26494147065)
  • Next Build on master (#26494640124)
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