3 ms·
Also doesn't make any sense, of course something that use open/close once will be faster than using open/close n time.
by vdfs 7y ago
Also doesn't make any sense, of course something that use open/close once will be faster than using open/close n time.
- blinkingled 7y agoIt gets weird when you throw Linux in the mix - open/close are extremely cheap on Linux, to the point of being free - at least used to be before Spectre and Meltdown and what not. So on Linux doing n more open/closes isn't much different than doing a single pair if n is not humongous and the program is doing other things besides just open close.