2 ms·
You'd think so, but it's crazy how much code does not minimize system calls at all. Things like read() to read the length of a string followed by a second read(
by vidarh 7y ago
You'd think so, but it's crazy how much code does not minimize system calls at all. Things like read() to read the length of a string followed by a second read() to read the string (hopefully after sanity checks..) is rife. "strace -c" is my favorite first stop when something looks slower than it should, and it's just insanely frustrating how often it reveals poorly written code.