Optimise autotools/run-in-tempdir
authorIustin Pop <iustin@google.com>
Sat, 22 Dec 2012 00:19:37 +0000 (01:19 +0100)
committerIustin Pop <iustin@google.com>
Sat, 22 Dec 2012 18:11:46 +0000 (19:11 +0100)
commit75b32fffb62ecddf67d3855284ee9dd5017789e6
treec9a54495213f19f83e410578cf51f49b922372d2
parentacaf3ca72eb6b6e5961432a19c119d73c3b7f155
Optimise autotools/run-in-tempdir

I made a mistake when adding support for htools to run-in-tempdir, by
needlessly copying the htools binaries, when it's enough to link
them. The copying is only really needed for python code, so we change
the Haskell binaries to linking and also a few other directories.

Difference:
- before: 0.8s, 95MB copied
- after: 0.6s, 6.2MB copied

And, by the way, can't wait for Python 2.6 as minimum supported
version…

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
autotools/run-in-tempdir