This repository was archived by the owner on Sep 1, 2020. It is now read-only.
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
performance of subsets() #71
Open
Description
Cross referencing a possible performance issue with Iterators.subsets()
and Combinatorics.combinations()
that I posted in Combinatorics.jl
JuliaMath/Combinatorics.jl#30
The performance of subsets()
seems to be ~2x slower than pure python Itertools
. Sample code to reproduce is in the original post referenced above.
# with Iterators.subsets()
1.164676 seconds (47.23 M allocations: 1.830 GB, 14.97% gc time)
# with Combinatorics.combinations()
1.597081 seconds (56.66 M allocations: 2.814 GB, 15.08% gc time)
# In Pure Python itertools.
Elapsed time 0.5022 seconds
Activity