ENH: wordRes::uniq() removes all duplicates
- previously just removed duplicate literals, but now remove any duplicates. - Replace previous wordHashSet implementation with a linear search instead. The lists are normally fairly small and mostly just have unique entries anyhow. This reduces the overall overhead.
Showing
- applications/test/wordRe/Test-wordRe.C 30 additions, 1 deletionapplications/test/wordRe/Test-wordRe.C
- src/OpenFOAM/primitives/strings/wordRes/wordRes.C 45 additions, 16 deletionssrc/OpenFOAM/primitives/strings/wordRes/wordRes.C
- src/OpenFOAM/primitives/strings/wordRes/wordRes.H 5 additions, 5 deletionssrc/OpenFOAM/primitives/strings/wordRes/wordRes.H
Please register or sign in to comment