Hacker News new | ask | show | jobs
by DanWaterworth 5129 days ago
It probably depends, but the cost of creating a heap allocated closure and then running it and deallocating it can be quite high against the cost of 2 context switches.