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

kubeovn / kube-ovn / 26878253837
26%
master: 26%

Build:
Build:
LAST BUILD BRANCH: renovate/master-kubevirt.io-client-go-1.x
DEFAULT BRANCH: master
Ran 03 Jun 2026 10:16AM UTC
Jobs 1
Files 212
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

03 Jun 2026 10:13AM UTC coverage: 25.63% (+0.003%) from 25.627%
26878253837

Pull #6816

github

oilbeater
perf(ipam): allocation-free IP comparison in range engine

LessThan/GreaterThan allocated two heap big.Int per call via
big.NewInt().SetBytes().Cmp(). These are the innermost primitive of the
range engine (IPRangeList.Find binary search, Separate/Merge/Intersect),
so every pod allocate/release walked them repeatedly.

Replace with an allocation-free per-family compare: IPv4 addresses are
compared as their 4-byte value (To4 does not allocate for 4-byte
storage), otherwise the 16-byte form is compared. Benchmark shows
0 allocs/op and ~7 ns/op versus the previous big.Int path.

This also makes the result consistent with Equal: the old raw-SetBytes
compare mis-ordered mixed 4-byte/16-byte IPv4 representations and treated
0.0.0.0 as equal to ::. Add unit tests covering both edge cases.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
Pull Request #6816: perf(ipam): allocation-free IP comparison in range engine

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

2 existing lines in 1 file now uncovered.

14794 of 57721 relevant lines covered (25.63%)

0.3 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
74.6
-0.53% pkg/ovs/ovn-nb-logical_router_route.go
Jobs
ID Job ID Ran Files Coverage
1 26878253837.1 03 Jun 2026 10:16AM UTC 212
25.63
GitHub Action Run
Source Files on build 26878253837
  • Tree
  • List 212
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #6816
  • PR Base - master (#26876176436)
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