Fred Drake | 64bc94e | 1999-06-17 15:11:35 +0000 | [diff] [blame] | 1 | \section{\module{cmpcache} --- |
| 2 | Efficient file comparisons} |
| 3 | |
| 4 | \declaremodule{standard}{cmpcache} |
| 5 | \sectionauthor{Moshe Zadka}{mzadka@geocities.com} |
| 6 | \modulesynopsis{Compare files very efficiently.} |
| 7 | |
Fred Drake | 7eaf682 | 1999-10-26 16:31:51 +0000 | [diff] [blame] | 8 | % XXX check version number before release! |
| 9 | \deprecated{1.5.3}{Use the \module{filecmp} module instead.} |
| 10 | |
Fred Drake | de69ae1 | 1999-06-17 17:40:52 +0000 | [diff] [blame] | 11 | The \module{cmpcache} module provides an identical interface and similar |
| 12 | functionality as the \refmodule{cmp} module, but can be a bit more efficient |
| 13 | as it uses \function{statcache.stat()} instead of \function{os.stat()} |
| 14 | (see the \refmodule{statcache} module for information on the |
| 15 | difference). |
Fred Drake | 64bc94e | 1999-06-17 15:11:35 +0000 | [diff] [blame] | 16 | |
Fred Drake | de69ae1 | 1999-06-17 17:40:52 +0000 | [diff] [blame] | 17 | \strong{Note:} Using the \refmodule{statcache} module to provide |
| 18 | \function{stat()} information results in trashing the cache |
| 19 | invalidation mechanism: results are not as reliable. To ensure |
| 20 | ``current'' results, use \function{cmp.cmp()} instead of the version |
| 21 | defined in this module, or use \function{statcache.forget()} to |
| 22 | invalidate the appropriate entries. |