-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Bob Friesenhahn on 4/9/2008 7:01 PM: | There may be value to extracting these shell functions into separate | files which are sourced only when needed. This way the overhead of | parsing "linking" code is not encountered while compiling, and | vice-versa. Since there is surely overhead associated with opening and | sourcing a file the chunk of code should be pretty large.
In fact, that's what autotest does in autoconf 2.62 - it distributes a single file with all the tests in the tail of the file, where the shell script at the head of the file parses the command line options, uses that to drive an awk script to parse out the line numbers where the tests of interest live, then uses the line number cache to drive a sed script to parse out each test into a separate file for sourcing by the shell only when it is needeed. As crazy as this multi-process action sounds, it was hands down faster than letting the shell parse all the test functions when running a subset of the testsuite, without too much penalty when running the entire testsuite. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkf9iLUACgkQ84KuGfSFAYAcIwCeNuLsON7gZ0XLG8k+U3cXydeT 2REAnjZOLd81d7Kw5Hdh3FH/PkhFbWPs =LLpS -----END PGP SIGNATURE----- _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool
