using var stream = File.OpenRead(path);
🧠 Problem
Dispose can block while flushing buffers.
✅ Rule
Avoid heavy IO inside tight loops.
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
using var stream = File.OpenRead(path);
Dispose can block while flushing buffers.
Avoid heavy IO inside tight loops.