3 ms·
How is it different from setInterval in JS?
by penneallagricia 3y ago
How is it different from setInterval in JS?
- vanderZwan 3y agoTechnically speaking? Go has parallelism by default, I suppose. But if your functions take negligible time to execute and the interval is sufficiently large enough then nothing from a user perspective.
- eddtries 3y agoYeah I was designing an internal lambda server so mostly parallelism, all I had to do was have a dynamic match and everything else was out the box for the load I needed
- vanderZwan 3y agoYeah, I'm sure a well-written parallel Rust or C++ program (using just the CPU cores) can do better, but Go really hits a Pareto sweet spot in terms of "effort vs speedup" return on investment.
- eddtries 3y agoI’m not the best systems dev, when I get these options I pick easy!