Comment Comment by halayli parsed = http_parser_execute(parser, &settings_null, buf, strlen(buf));assert(parsed == strlen(buf));He's calling strlen(buf) twice here. There's no guarantee that this is optimized at compile time. Usually len of buf is determined from read/recv system calls and for a fair comparison strlen should be removed here. parent halayli 12 years ago
assert(parsed == strlen(buf));
He's calling strlen(buf) twice here. There's no guarantee that this is optimized at compile time. Usually len of buf is determined from read/recv system calls and for a fair comparison strlen should be removed here.