Invoke pkg-config at most twice
RhysU opened this issue · comments
Once for --cflags
and once for --libs
should be optimal.
Some coarse performance, done using c99shrc.example
to run basic/hello
100 times before and after this change, shows it taking the runtime from 0.160000-0.230000 (0.1935+/-0.014)
down to 0.150000-0.200000 (0.1696+/-0.01)
. Not astounding, but happily measurable.