4 ms·
In the exception code a foo.eof() check need to be in foo.read(). So I guess the runtime in theory should be the same and the implementation happened to be slo
by rightbyte 4y ago
In the exception code a foo.eof() check need to be in foo.read().
So I guess the runtime in theory should be the same and the implementation happened to be slow. Maybe eol() did some syscall each time instead of caching a EOF int like in C.