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

ruby-grape / grape / 33414208926
97%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2026 04:27PM UTC
Jobs 0
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
33414208926

push

github

web-flow
Read the params builder setting with `[]` instead of `method_missing` (#2873)

`Grape::Request#initialize` runs once per request and resolves the default
params builder through `Grape.config.param_builder`. dry-configurable's Config
defines no readers for its settings: the call lands in `method_missing`, which
derives the setting name with `method_name.to_s.tr("=", "").to_sym` — two
throwaway Strings and a slow dispatch, on every request.

`Config#[]` is the same lookup without either. Measured in one process:

    Grape.config.param_builder      282 ns   3 objects
    Grape.config[:param_builder]     44 ns   0 objects   6.4x faster

Three fewer objects allocated per request, on every request, on every endpoint
— confirmed end to end with a deterministic allocation count against a small
API (46.1 -> 43.1 objects for a bare JSON GET).

Nothing else changes: `method_missing` resolves `param_builder` to exactly this
lookup, so a `Grape.config.param_builder = ...` set anywhere still takes effect
the same way.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Source Files on build 33414208926
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #33414208926
  • 41813a2e on github
  • Prev Build on master (#33413891834)
  • Next Build on master (#33414584203)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc