<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.60">
<TITLE>[RFC] in progress: autocache patch</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Here is my current autocache patch for comments. I have two features left to implement: 1) permissions on tarballs, and 2) ability to select compressed/uncompressed tarballs.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Usage:</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">There are two added command line options. First is &quot;--autocache&quot;. You should be able to just add this command line option to all mock invocations to automatically and transparently speed up operations. It will automatically build cache the first time it is invoked. It will automatically use the cache if it exists. It will automatically expire the cache and rebuild it on a periodic basis. The second option is &quot;--rebuildcache&quot;. This option is for the rare occasions when you would like to force a rebuild of the cache.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Theory:</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">The theory behind this patch is that it will automatically untar the buildroot from a tarball, if the tarball exists. It will automatically create the tarball if it does not exist (only when --autocache is specified). The tarball has an expiration date, default is 15 days. After the tarball is older than this, it will automatically be rebuilt.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Test results:</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Initial testing with FC5 yum repo mirror on local network and squid proxy running on local machine resulted in a &quot;init&quot; of the build root at 2:20. Using an already-cached build root takes this time down to 0:13.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">--</FONT>

<BR><FONT SIZE=2 FACE="Arial">Michael</FONT>
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> &lt;&lt;mock-autocache.patch&gt;&gt; </FONT>
</P>

</BODY>
</HTML>