Date: Tue, 15 Nov 2005 16:57:39 -0500 From: Nicolas Blais <nb_root@videotron.ca> To: Jens Schweikhardt <schweikh@schweikhardt.net> Cc: Steve Hodgson <steve@acidy.com>, freebsd-current@freebsd.org Subject: Re: Using ccache for build{world, kernel} (was: can't compile -CURRENT since 2 days ago) Message-ID: <200511151657.44716.nb_root@videotron.ca> In-Reply-To: <20051115211418.GE1783@schweikhardt.net> References: <200511141702.45491.nb_root@videotron.ca> <20051115183647.GA1783@schweikhardt.net> <20051115211418.GE1783@schweikhardt.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2230332.sj9UJjVNiz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On November 15, 2005 04:14 pm, Jens Schweikhardt wrote: > Folks, > > # Put this in /usr/ports/devel/ccache/files/patch-nohash-size-mtime and > # reinstall the port. Then export CCACHE_NOHASH_SIZE_MTIME=3Dy during your > # makes for buildworld and buildkernel. This melts my buildworld time > # from 2700s (real@~100%CPU) to under 1000s and buildkernel from 800s > # to 250s, so you gain about a factor 3 for ab-initio builds. Sweet! > # > # > # --- ccache.c.orig Mon Oct 31 17:38:21 2005 > # +++ ccache.c Mon Oct 31 17:52:31 2005 > # @@ -331,8 +331,10 @@ > # hash_string(str_basename(args->argv[0])); > # } > # > # - hash_int(st.st_size); > # - hash_int(st.st_mtime); > # + if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) { > # + hash_int(st.st_size); > # + hash_int(st.st_mtime); > # + } > [Rest of patch snipped ...] > > I just asked the devel/ccache maintainer to commit this patch and he > promptly did (Thanks Michael Johnson, aka ahze!). So you only need this > unless your ports tree is current as of now. > > Regards, > > Jens Thanks, very helpful! =2D-=20 =46reeBSD 7.0-CURRENT #0: Tue Nov 15 06:21:56 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://www.clkroot.net/security/nb_root.asc --nextPart2230332.sj9UJjVNiz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDelnYz38ton5LGeIRAjI9AJ0cg/psFCfdu786n0ohcR0DM89URgCgpkGu tgA66R1Jc8SllH6oiGZyZRs= =nMpo -----END PGP SIGNATURE----- --nextPart2230332.sj9UJjVNiz--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511151657.44716.nb_root>