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

Teamwork / kommentaar
55%
master: 55%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.3.3
DEFAULT BRANCH: master
Repo Added 17 Jan 2024 02:00PM UTC
Token Hl0IHChx7sdBtong96gTfQfrlaivub8Ak regen
Build 96 Last
Files 10
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

LAST BUILD ON BRANCH perf/parallel-file-parsing
branch: perf/parallel-file-parsing
CHANGE BRANCH
x
Reset
Sync Branches
  • perf/parallel-file-parsing
  • docker
  • enhancement/better-generic-support
  • enhancement/generic-types-map
  • enhancement/preinstall-kommentaar-docker
  • enums
  • feature/update-go-1.26
  • fix-embed-json-dash
  • fix/atomic-output-write
  • fix/cross-package-enum
  • fix/generics
  • fix/generics-support
  • fix/linter
  • fix/maptype-resolve-selectors-and-slices
  • fix/package-name-collision
  • generics
  • go-compiler
  • infer-required
  • log-empty-tags
  • map-of-slice-additional-properties
  • maps
  • master
  • refs/tags/v0.1.10
  • refs/tags/v0.1.11
  • refs/tags/v0.1.9
  • refs/tags/v0.2.0
  • refs/tags/v0.2.1
  • refs/tags/v0.2.2
  • refs/tags/v0.2.3
  • refs/tags/v0.2.4
  • refs/tags/v0.2.5
  • refs/tags/v0.2.6
  • refs/tags/v0.2.7
  • refs/tags/v0.2.8
  • refs/tags/v0.3.0
  • refs/tags/v0.3.1
  • refs/tags/v0.3.2
  • refs/tags/v0.3.3
  • run-output-opt

01 Jul 2026 04:57PM UTC coverage: 55.214% (+1.6%) from 53.654%
28534006016

push

github

shane-tw
docparse: speed up doc generation via parallel parsing and package preloading

- Parse all source files concurrently in FindComments using a WaitGroup;
  each goroutine owns its own token.FileSet.
- Cache parsed *ast.File values by absolute path (astFileCache sync.Map)
  so getDecls reuses already-parsed ASTs instead of re-reading files.
- Parallel-parse any uncached files inside getDecls as well.
- Batch-resolve all imported packages with a single packages.Load call
  (preloadPackages) before the serial endpoint-processing loop, pre-populating
  resolvedPkgCache and declsCache to eliminate cold build.Import calls.
- Cache both successes and failures in resolvedPkgCache (pkgResult) so
  short package names that fail the first lookup are not retried repeatedly.
- Emit progress lines to stderr so users can see what is happening.

137 of 158 new or added lines in 1 file covered. (86.71%)

3 existing lines in 1 file now uncovered.

1292 of 2340 relevant lines covered (55.21%)

40.69 hits per line

Relevant lines Covered
Build:
Build:
2340 RELEVANT LINES 1292 COVERED LINES
40.69 HITS PER LINE
Source Files on perf/parallel-file-parsing
  • Tree
  • List 10
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28534006016 perf/parallel-file-parsing docparse: speed up doc generation via parallel parsing and package preloading - Parse all source files concurrently in FindComments using a WaitGroup; each goroutine owns its own token.FileSet. - Cache parsed *ast.File values by absolute path (... push 01 Jul 2026 04:57PM UTC shane-tw github
55.21
28533681959 perf/parallel-file-parsing docparse: speed up doc generation via parallel parsing and package preloading - Parse all source files concurrently in FindComments using a WaitGroup; each goroutine owns its own token.FileSet. - Cache parsed *ast.File values by absolute path (... Pull #115 01 Jul 2026 04:52PM UTC shane-tw github
55.42
28532967193 perf/parallel-file-parsing docparse: batch-resolve imports via packages.Load before endpoint processing The previous preloadImports attempt called build.Import concurrently for all imports, causing system contention and making things slower. This replaces it with a single... Pull #115 01 Jul 2026 04:39PM UTC shane-tw github
55.63
28532691333 perf/parallel-file-parsing docparse: cache build.Import failures to eliminate repeated failed lookups resolvePackageWithFallback was only caching successes. Short package names like "payload" always fail (not a full import path) before resolvePackage falls back to goutil.R... Pull #115 01 Jul 2026 04:34PM UTC shane-tw github
55.05
28532340004 perf/parallel-file-parsing docparse: revert preloadImports (caused contention, made things slower) Concurrent bulk package loading via build.Import serializes internally and caused worse performance than the lazy-load approach. The resolvedPkgCache (caching build.Import p... Pull #115 01 Jul 2026 04:28PM UTC shane-tw github
55.14
28531398977 perf/parallel-file-parsing docparse: cache package resolution to avoid repeated go list calls resolvePackageWithFallback calls goutil.ResolvePackage (build.Import) for every unique type reference. In module mode build.Import can spawn a go list subprocess, making each call... Pull #115 01 Jul 2026 04:11PM UTC shane-tw github
55.14
28530330413 perf/parallel-file-parsing docparse: print each endpoint as it is processed Makes it visible which endpoints are slow during type resolution. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Pull #115 01 Jul 2026 03:54PM UTC shane-tw github
54.95
28529947555 perf/parallel-file-parsing docparse: add mid-phase progress message after parallel parse Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Pull #115 01 Jul 2026 03:47PM UTC shane-tw github
54.94
28529744948 perf/parallel-file-parsing docparse: add progress output and fix partial-AST caching - Print "parsing N files", "found N endpoints, generating output" to stderr so callers have visibility into a run without enabling debug traces - Guard astFileCache stores with parseErr ... Pull #115 01 Jul 2026 03:44PM UTC shane-tw github
54.9
28527927887 perf/parallel-file-parsing docparse: reuse FindComments ASTs in type resolution Two optimisations to reduce redundant file parsing: 1. Cross-phase AST reuse: FindComments already parses every controller file to extract endpoint comments. Those ASTs were discarded, caus... Pull #115 01 Jul 2026 03:15PM UTC shane-tw github
54.66
See All Builds (96)

Badge your Repo: kommentaar

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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