commit | 1769a18f6257ee1025774b0540f580271c75c4fa | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue May 04 10:47:57 2010 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue May 04 11:04:54 2010 +0200 |
tree | 34a0dd1f680fdaf4d2c3cb7177284afe0ef562a2 | |
parent | 0f423a70730bc42de75222b3c00404532f084010 [diff] |
[OPTIM] halog: use a faster zero test in fgets() A new idea came up to detect the presence of a null byte in a word. It saves several operations compared to the previous one, and eliminates the jumps (about 6 instructions which can run 2-by-2 in parallel). This sole optimisation improved the line count speed by about 30%.