On 12/08/2011 08:03 AM, Gary V. Vaughan wrote:
Any additional forks will slow down the script and should be avoided on all
platforms.
Agreed.
Following up just because "slow down" is not a number:
touch a.c
time (for x in {1..100}; do ./libtool --mode=compile --tag=CC gcc -c -o
a.lo a.c; done)
Some older libtool that was sitting there.
libtool (GNU libtool 1.3337 2011-10-17) 2.4.3a
real 0m12.061s user 0m5.062s sys 0m4.219s
real 0m11.483s user 0m5.039s sys 0m4.187s
real 0m11.665s user 0m5.057s sys 0m4.292s
real 0m11.524s user 0m4.997s sys 0m4.239s
real 0m11.496s user 0m5.055s sys 0m4.172s
real 0m11.580s user 0m5.080s sys 0m4.219s
Just bootstrapped from today:
libtool (GNU libtool) 2.4.2.138-f7bd6-dirty
real 0m12.002s user 0m5.206s sys 0m4.371s
real 0m12.071s user 0m5.289s sys 0m4.336s
real 0m11.972s user 0m5.243s sys 0m4.342s
real 0m11.963s user 0m5.267s sys 0m4.273s
real 0m12.069s user 0m5.216s sys 0m4.421s
real 0m12.054s user 0m5.234s sys 0m4.379s
Peter