Re: Time to compile
Derek Teaney <[email protected]> Tue, 22 Nov 2005 16:33:11 -0500 (EST)
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Dear a-a-p,=20 The program does depend on a lot library headers. of headers. I guess its mostly my fault:=20 If I had written #include <file.h>=20 instead of=20 #include "file.h" =20 I presume that performance would be much improved.=20 Is there any easy way that I could leave out some directories in the dependency check? Derek >=20 > Fran=E7ois Pinard wrote: >=20 > > [Bram Moolenaar] > >=20 > > >Derek Teaney wrote: > >=20 > > >> I have a list of about 40 files and it takes quite some time (12 s= )=20 > > >> to decide what to do compile. Would 400 files then take 2 minutes= ? > >=20 > > > A-A-P computes a checksum to find out if the file contents has=20 > > > changed. If your processor is slow this may take a while. I have=20 > > > worked with Aap and very many files without big delays. It does=20 > > > depend on the speed of your machine, of course. Only checking=20 > > > timestamps will be faster, but less accurate. And after doing "tou= ch=20 > > > file" a file may seem outdated, causing a lot of work to be done ev= en=20 > > > when its contents didn't actually change. That's wasting time then. > >=20 > > Just an idea. Could checksums be computed only if timestamps > > differ (regardless of ordering of timestamps)? Size might also be=20 > > checked for a bit more safety, when timestamps are identical. That=20 > > might speed up things for big projects, without adverse effects in=20 > > practice. >=20 > Timestamps on files often have an accuracy of one second only. It's > very well possible today to change a file several times within a second= , > e.g. when running a shell script to compile two versions with different > features. I don't really want to make Aap less reliable for the sake o= f > performance. >=20 >=20 --=20 ------------------------------------------------------------------ Derek Teaney e-mail: Derek.Teaney-nSGZJWG/ZnXz/[email protected] Dept. of Physics & Astronomy phone: (631) 632-4528 SUNY at Stony Brook fax : (631) 632-9718 Stony Brook, NY 11764-3800 =20 ------------------------------------------------------------------ ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click