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

go-pkgz / stringutils / 16893245594

11 Aug 2025 10:02PM UTC coverage: 98.291% (-0.1%) from 98.438%
16893245594

push

github

umputun
refactor(dedup): unify DeDup algorithms into single stable implementation

replace unstable O(n²) DeDup with stable O(n) map-based algorithm that preserves order of first occurrences. DeDupBig is now deprecated and simply calls DeDup for backwards compatibility.

this change eliminates the confusing dual-algorithm design, improves performance for all slice sizes, and ensures predictable behavior. the new implementation no longer mutates input slices, returning a new slice instead.

verified by comprehensive tests including stability checks and non-mutation verification. benchmarks show significant performance improvement for small slices with no degradation for large ones.

115 of 117 relevant lines covered (98.29%)

30.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.29
/stringutils.go


Build SHA Not Found

The commit SHA "ea95ec058796edbe727b78f88f089baa0a940b12" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

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