Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How long does that take?


Depends on the machine. See the comments in the file:

https://github.com/ubernostrum/webcolors/blob/master/tests/f...

The fun part is people who criticize the generation of the integer triplets; yes, it's three nested loops and that's bad, but the total number of iterations will always be 16,777,216 no matter what algorithm you decide to use to generate them. So it uses nested loops since that's the most readable way to do it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: