Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/lib/libutil
Module Name: src
Committed By: rillig
Date: Tue May 13 04:50:45 UTC 2025
Modified Files:
src/lib/libutil: strpct.c
Log Message:
strpct: inline simple snprintf calls
For fractions in the typical range from 0 inclusively to 1 exclusively,
snprintf is not called at all. For calling strpct 1 million times in
t_strpct, the run time on my amd64 machine goes from 28 seconds down to
2 seconds.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libutil/strpct.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index