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

golang-migrate / migrate / 31292342710
55%
master: 55%

Build:
Build:
LAST BUILD BRANCH: perf/source-lazy-index-build
DEFAULT BRANCH: master
Ran 09 Aug 2026 03:44AM UTC
Jobs 2
Files 59
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

09 Aug 2026 03:23AM UTC coverage: 54.911% (+0.5%) from 54.412%
31292342710

Pull #1424

github

YuheiTakagawa
perf(source): build migrations index lazily to avoid quadratic startup

Migrations.Append rebuilt and re-sorted the whole index on every call,
making source driver initialization O(n^2 log n) in the number of
migration files. All in-memory source drivers (file, iofs, aws_s3,
github, ...) call Append in a loop at Open/Init time, so startup cost
grew quadratically: 81ms at 1,000 migrations, 2.2s at 5,000 and 11.3s
at 10,000 on an i9-9900K.

Append now only marks the index dirty; the index is rebuilt at most
once, on the first read access (First/Prev/Next). No exported API
changes.

BenchmarkAppend5000 drops from ~2.2s/op to ~2ms/op.
Pull Request #1424: perf(source): build migrations index lazily to avoid quadratic startup

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

4422 of 8053 relevant lines covered (54.91%)

18244.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go-1.26.x - 31292342710.1 09 Aug 2026 03:45AM UTC 59
54.91
GitHub Action Run
2 Go-1.25.x - 31292342710.2 09 Aug 2026 03:44AM UTC 59
54.91
GitHub Action Run
Source Files on build 31292342710
  • Tree
  • List 59
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1424
  • PR Base - master (#28747999081)
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