• Magne Mahre's avatar
    Bug #14637: trim trailing spaces processes data only byte wise · bd97e771
    Magne Mahre authored
    (From: gkodinov)
    Use and int * where possible to scan for trailing space in a
    string instead of always iterating char-by-char.
    Using the attached benchmark file on a 32 bit Intel Core 2 
    Duo CPU I've got 43485 ms run with the fix compared to 44373 
    without it.
    
    Backported to 5.6.0 (next-mr-runtime)
    6.0-codebase revid: 2476.1362.1
    bd97e771
ctype-bin.c 15 KB