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

alexferl / zerohttp / 22886513442 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 10 Mar 2026 04:03AM UTC
Files 66
Run time 1s
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

10 Mar 2026 04:02AM UTC coverage: 93.36% (+0.04%) from 93.322%
22886513442.1

push

github

web-flow
fix: use type registry to eliminate reflection overhead in binding (MP-6) (#58)

Replace reflection-heavy binding with cached type information:

- Add type registry (type_registry.go) that caches struct field metadata
  using sync.Map for thread-safe concurrent access
- Pre-compute bindable fields for form/query tags and file uploads
- Use FieldByIndex with cached paths for O(1) field access instead of
  recursive reflection on each request
- Properly handle unexported embedded structs (their exported fields
  are still accessible and bindable)
- Return explicit error for non-pointer FileHeader fields

This eliminates repeated reflection overhead during request binding,
significantly improving performance on high-throughput endpoints.

Signed-off-by: alexferl <me@alexferl.com>

8071 of 8645 relevant lines covered (93.36%)

49.6 hits per line

Source Files on job 22886513442.1
  • Tree
  • List 66
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22886513442
  • 405fdfe1 on github
  • Prev Job for on master (#22883966775.1)
  • Next Job for on master (#22886738734.1)
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