3 ms·
What is a “tight C loop”?
by CoffeeCollector 4y ago
What is a “tight C loop”?
- klez 4y agoIt's a loop with few instruction that iterates many times, written in C.
- CoffeeCollector 4y agoCan’t we have a tight loop in any language? What’s special about C here?
- josephcsible 4y agoTight 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.
- CoffeeCollector 4y agoSeems to me this says more about the programmer than the language.
- klez 4y agoThe fact that I was responding to someone asking what a tight *C* loop is, nothing more.