Merge: Nitunit: mass compile non-simple docunits
authorJean Privat <jean@pryen.org>
Fri, 1 Jun 2018 17:10:02 +0000 (13:10 -0400)
committerJean Privat <jean@pryen.org>
Fri, 1 Jun 2018 17:10:02 +0000 (13:10 -0400)
commit8982932dc5b83032ce08b5b16b8a60465dad7e1e
tree84b170bd0160d6c4cbc9d0948a239295d503f34f
parentb24ec3fea97ccc6b13cd3eada7849f83b61356c5
parent1b5227700c70811c4d96bda36a1a5d4066f94365
Merge: Nitunit: mass compile non-simple docunits

When docunits are simple (just statements), a single module is generated for all.
Unfortunately, when docunits contains classes or importations, a specific module must be generated for each one of them.
Compiling all these module takes most of the nitunit elapsed time.

This PR tries to compile these non-simple modules at once, thanks to nitc that features invoking it with multiple programs.

Testing with `nitunit lib/popcorn/README.md`

Before:
* cold ccache: 1m3,832s
* hot ccache: 0m23,063s

After:
* cold ccache: 0m44,517s (-30%)
* hot ccache: 0m17,778s (-23%)

Pull-Request: #2510
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>
src/testing/testing_doc.nit
tests/sav/nitunit_args1.res