Re:The Cost of Exception Handling
by rightbyte on Saturday November 12, 2022 @11:28AM
(#33574548)
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.
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.