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} |
Fred Drake | 57657bc | 2000-12-01 15:25:23 +0000 | [diff] [blame] | 5 | \sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il} |
Fred Drake | 64bc94e | 1999-06-17 15:11:35 +0000 | [diff] [blame] | 6 | \modulesynopsis{Compare files very efficiently.} |
| 7 | |
Fred Drake | 2905248 | 2001-01-25 17:29:18 +0000 | [diff] [blame] | 8 | \deprecated{1.6}{Use the \refmodule{filecmp} module instead.} |
Fred Drake | 7eaf682 | 1999-10-26 16:31:51 +0000 | [diff] [blame] | 9 | |
Fred Drake | de69ae1 | 1999-06-17 17:40:52 +0000 | [diff] [blame] | 10 | The \module{cmpcache} module provides an identical interface and similar |
| 11 | functionality as the \refmodule{cmp} module, but can be a bit more efficient |
| 12 | as it uses \function{statcache.stat()} instead of \function{os.stat()} |
| 13 | (see the \refmodule{statcache} module for information on the |
| 14 | difference). |
Fred Drake | 64bc94e | 1999-06-17 15:11:35 +0000 | [diff] [blame] | 15 | |
Fred Drake | 0aa811c | 2001-10-20 04:24:09 +0000 | [diff] [blame] | 16 | \note{Using the \refmodule{statcache} module to provide |
Fred Drake | de69ae1 | 1999-06-17 17:40:52 +0000 | [diff] [blame] | 17 | \function{stat()} information results in trashing the cache |
| 18 | invalidation mechanism: results are not as reliable. To ensure |
| 19 | ``current'' results, use \function{cmp.cmp()} instead of the version |
| 20 | defined in this module, or use \function{statcache.forget()} to |
Fred Drake | 0aa811c | 2001-10-20 04:24:09 +0000 | [diff] [blame] | 21 | invalidate the appropriate entries.} |