blob: 89914774929e5f0df7886f3d4bb625199eb4a615 [file] [log] [blame]
Fred Drake64bc94e1999-06-17 15:11:35 +00001\section{\module{cmpcache} ---
2 Efficient file comparisons}
3
4\declaremodule{standard}{cmpcache}
Fred Drake57657bc2000-12-01 15:25:23 +00005\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
Fred Drake64bc94e1999-06-17 15:11:35 +00006\modulesynopsis{Compare files very efficiently.}
7
Fred Drake29052482001-01-25 17:29:18 +00008\deprecated{1.6}{Use the \refmodule{filecmp} module instead.}
Fred Drake7eaf6821999-10-26 16:31:51 +00009
Fred Drakede69ae11999-06-17 17:40:52 +000010The \module{cmpcache} module provides an identical interface and similar
11functionality as the \refmodule{cmp} module, but can be a bit more efficient
12as it uses \function{statcache.stat()} instead of \function{os.stat()}
13(see the \refmodule{statcache} module for information on the
14difference).
Fred Drake64bc94e1999-06-17 15:11:35 +000015
Fred Drake0aa811c2001-10-20 04:24:09 +000016\note{Using the \refmodule{statcache} module to provide
Fred Drakede69ae11999-06-17 17:40:52 +000017\function{stat()} information results in trashing the cache
18invalidation mechanism: results are not as reliable. To ensure
19``current'' results, use \function{cmp.cmp()} instead of the version
20defined in this module, or use \function{statcache.forget()} to
Fred Drake0aa811c2001-10-20 04:24:09 +000021invalidate the appropriate entries.}