Hacker News new | ask | show | jobs
by CoffeeCollector 1410 days ago
What is a “tight C loop”?
1 comments

It's a loop with few instruction that iterates many times, written in C.
Can’t we have a tight loop in any language? What’s special about C here?
Tight loops in higher-level languages generally always have yield points/opportunities to break provided by the runtime, even if the loop itself doesn't appear to have any.
Seems to me this says more about the programmer than the language.
The fact that I was responding to someone asking what a tight *C* loop is, nothing more.