Hi guys!
I wonder: how could I accelerate my NAnt builds? Any trick will be appreciated.
Currently, I'm building 28 projects. If I do "nant clean build", it takes 99.7 seconds to finish, which is ok (it takes time to compile, it's not NAnt's fault). No problem here.
But then, right after building everything, if I attempt to build everything again running "nant buid" (not cleaning), it still takes a considerable amount of time to finish (16 seconds).
Is there any way to accelerate NAnt when everything is already built? Thanks!
Claudio Pacciarini
Claudio,
Probably the biggest area for optimising NAnt build is, as suggested by Brad, in the tuning of fileset contents.
Wildcards should be as late as possible in the fileset pattern...
eg: name="**/*.obj" will traverse the entire directory tree from the current point looking for *.obj files, while "bin/**/*.obj" will search only a single branch of that tree.
But basically, exactly the same advice applies that applies to optimising code also applies to optimising build scripts: Empirically measure how long each part of the script is taking, make a change, then measure again to see if the change helped. If it didn't, then discard it!
Regards,
-- Troy
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
