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

Not only that, but channels are internally implemented with mutexes anyway, so a naive mutexes+callbacks implementation wouldn't be any faster.


Channels have a performance overhead over handling the locking yourself. Maybe look at stuff from Tyler Treat to learn more (maybe his most recent talk? https://www.youtube.com/watch?v=DJ4d_PZ6Gns) but there are some other discussions (mostly with earlier Go versions) but maybe something changed?




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

Search: