blob: 58b03e216fb4c191bd9d1cf9a4cd5f560dcbb39d [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 Drakede69ae11999-06-17 17:40:52 +000016\strong{Note:} Using the \refmodule{statcache} module to provide
17\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
21invalidate the appropriate entries.