On 22/08/2025 04:15, Collin Funk wrote:
     LC_ALL=en_US.UTF-8 src/fold: 4194304
     real       0m0.937s
     LC_ALL=en_US.UTF-8 src/fold-c: 4194304
     real       0m1.787s
     LC_ALL=en_US.UTF-8 /bin/fold: 4194304
     real       0m7.055s
     LC_ALL=C src/fold: 4194304
     real       0m0.864s
     LC_ALL=C src/fold-c: 4194304
     real       0m1.818s
     LC_ALL=C /bin/fold: 4194304
     real       0m0.940s


Note that the original V1 patch has the benefit of supporting any
encoding that the system supports. This one uses mcel which doesn't
support legacy encodings like Shift JIS.
BTW performance info like this is very important,
and would be very worthwhile including with the commit message
in any future similar commits.

cheers,
Padraig

Reply via email to