Why this matters
In a tight loop, deferring an operation on each iteration can lead to increased memory usage (each defer is stacked until function exit) and CPU overhead. This can slow down performance and delay resource release. It's more efficient to handle repetitive operations inline for large loops.