blob: dab987e33f73077e1617f65c8948be65f00d759d [file] [log] [blame]
Fred Drake64bc94e1999-06-17 15:11:35 +00001\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 Drakede69ae11999-06-17 17:40:52 +00008The \module{cmpcache} module provides an identical interface and similar
9functionality as the \refmodule{cmp} module, but can be a bit more efficient
10as it uses \function{statcache.stat()} instead of \function{os.stat()}
11(see the \refmodule{statcache} module for information on the
12difference).
Fred Drake64bc94e1999-06-17 15:11:35 +000013
Fred Drakede69ae11999-06-17 17:40:52 +000014\strong{Note:} Using the \refmodule{statcache} module to provide
15\function{stat()} information results in trashing the cache
16invalidation mechanism: results are not as reliable. To ensure
17``current'' results, use \function{cmp.cmp()} instead of the version
18defined in this module, or use \function{statcache.forget()} to
19invalidate the appropriate entries.