Timeline for Generate every unique combination using all elements from array
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 16, 2014 at 18:10 | comment | added | Tom Robinson | Sorry I got the versions mixed up. @vilsol's pc_permute version is indeed very fast (0.5s). It is rtainc's getAllCombos I was referring to above. | |
Dec 16, 2014 at 3:25 | comment | added | Tom Robinson | @vilsol - For 8 words, on my IIS/PHP 5.3 server, I find your getAllCombos version is slightly slower than the original code at 241 sec, but it does produce the correct 40,320 rows. The original code is slightly faster at 199 sec, but 10 or 20 (it's random) of the row are missing! My version runs in 0.3 sec. That is over 500 times faster than the other two versions. | |
Dec 16, 2014 at 0:22 | comment | added | Vilsol | The second version that I posted is still a bit quicker. | |
Dec 15, 2014 at 22:00 | review | First posts | |||
Dec 15, 2014 at 22:03 | |||||
Dec 15, 2014 at 21:57 | history | answered | Tom Robinson | CC BY-SA 3.0 |