in reply to Re^2: Foreach time delay
in thread Foreach time delay
"If Perl made a system call for every read operation, that would be 10,001 system calls in all (one extra to detect end-of-file), and if the file was on the disk, it would have to wait for the disk at least 10,000 times. That would be very slow."
Can you write a better OS?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Foreach time delay
by Anonymous Monk on Mar 16, 2017 at 17:39 UTC |