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

go-playground / form / 18267045333
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix-issue-71-nested-performance
DEFAULT BRANCH: master
Ran 06 Oct 2025 01:04AM UTC
Jobs 1
Files 6
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

06 Oct 2025 01:03AM UTC coverage: 99.723% (-0.09%) from 99.814%
18267045333

Pull #73

github

web-flow
Improve nested structure decoding performance

Optimize nested structure decoding by replacing O(n) linear search
with O(1) hash map lookup in the findAlias function.

Changes:
- Add aliasMap (map[string]*recursiveData) to decoder struct for O(1) alias lookups
- Initialize and clear aliasMap in parseMapData
- Replace linear search loop in findAlias with direct map lookup
- Add performance regression tests for nested array decoding (10, 50, 200 elements)
- Add benchmark tests for 100 and 1000 nested elements
- Support both normal and race detector modes with appropriate thresholds

Performance improvements:
- 100 nested elements: ~28% faster (55ms -> 39ms)
- 1000 nested elements: ~3.6x faster (16.9s -> 4.7s)

The fix scales linearly instead of exponentially with nested structure depth.

Improves #71
Pull Request #73: Fix issue #71: Optimize nested structure decoding performance

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

1 existing line in 1 file now uncovered.

1080 of 1083 relevant lines covered (99.72%)

43077.24 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.83
-0.17% decoder.go
Jobs
ID Job ID Ran Files Coverage
1 18267045333.1 06 Oct 2025 01:04AM UTC 6
99.72
GitHub Action Run
Source Files on build 18267045333
  • Tree
  • List 6
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #73
  • PR Base - master (#13994600204)
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

© 2025 Coveralls, Inc