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

Reminds me of a funny comment on Stack Overflow:

> This continual creation/termination/destruction of threads is done so often that I wonder where the idea came from. I presume some poisonous textbook is responsible. Sometimes, it seems that the whole SO is riddled with threads that add two integers and then terminate, just so that the 'main' thread can wait with 'join'. God help us :(

I hope parallelSort() just calls sort() if the array is smaller than some threshold.



But if the array is that small it won't matter. The sort() will be quicker, but it will be a trivial difference.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: