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

go-pkgz / stringutils / 16893230190

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

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


Source Not Available

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