good first issueperformancestrings
Metriche repository
- Star
- (48.709 star)
- Metriche merge PR
- (Merge medio 20g 6h) (157 PR mergiate in 30 g)
Descrizione
It seems that allunique is not short-circuiting efficiently for strings
julia> VERSION
v"1.10.0-DEV.1604"
julia> using Random
julia> using BenchmarkTools
julia> s=randstring(100000);
julia> @btime allunique(s)
140.850 μs (7 allocations: 848 bytes)
false
julia> @btime allunique(s[1:100]) && allunique(s)
575.746 ns (8 allocations: 968 bytes)
false
140 μs >> 575 ns