3 ms·
A compiler could just forward the zero from the memset directly to your write syscall and delete the memset (and I would certainly implement this optimization i
by pcwalton 12y ago
A compiler could just forward the zero from the memset directly to your write syscall and delete the memset (and I would certainly implement this optimization in a compiler if I found it helped real code).