3 ms·
Arguably the buffer belongs in the loop scope because it is only relevant there. It’s probably also safer from wrong use. This feels like exactly what you want
by Waterluvian 2y ago
Arguably the buffer belongs in the loop scope because it is only relevant there. It’s probably also safer from wrong use.
This feels like exactly what you want the compiler to think about: a case where optimization comes at the cost of organization.
- immibis 2y agoOrganization is basically completely irrelevant for a small piece of code like this, which fits in your head all at once.