Haproxy does not use tabs when sending logs, and checking for them
wastes no less than 4% of CPU cycles. Better get rid of these tests.
c = *(p++);
if (c > ' ')
continue;
- if (c == ' ' || c == '\t' || c == 0)
+ if (c == ' ' || c == 0)
break;
}
return p - 1;
c = *p;
if (c > ' ')
break;
- if (c == ' ' || c == '\t')
+ if (c == ' ')
goto next;
if (!c) /* end of line */
return p;
c = *(p++);
if (c > ' ')
continue;
- if (c == ' ' || c == '\t')
+ if (c == ' ')
break;
if (c == '\0')
return p;
/* stop at end of field or first ';' or '?', takes avg 64 ns per line */
e = b;
do {
- if (*e == ' ' || *e == '?' || *e == ';' || *e == '\t') {
+ if (*e == ' ' || *e == '?' || *e == ';') {
*(char *)e = 0;
break;
}