1999-06-17 17:11:35 +02:00
|
|
|
\section{\module{cmpcache} ---
|
|
|
|
Efficient file comparisons}
|
|
|
|
|
|
|
|
\declaremodule{standard}{cmpcache}
|
|
|
|
\sectionauthor{Moshe Zadka}{mzadka@geocities.com}
|
|
|
|
\modulesynopsis{Compare files very efficiently.}
|
|
|
|
|
1999-10-26 18:31:51 +02:00
|
|
|
% XXX check version number before release!
|
|
|
|
\deprecated{1.5.3}{Use the \module{filecmp} module instead.}
|
|
|
|
|
1999-06-17 19:40:52 +02:00
|
|
|
The \module{cmpcache} module provides an identical interface and similar
|
|
|
|
functionality as the \refmodule{cmp} module, but can be a bit more efficient
|
|
|
|
as it uses \function{statcache.stat()} instead of \function{os.stat()}
|
|
|
|
(see the \refmodule{statcache} module for information on the
|
|
|
|
difference).
|
1999-06-17 17:11:35 +02:00
|
|
|
|
1999-06-17 19:40:52 +02:00
|
|
|
\strong{Note:} Using the \refmodule{statcache} module to provide
|
|
|
|
\function{stat()} information results in trashing the cache
|
|
|
|
invalidation mechanism: results are not as reliable. To ensure
|
|
|
|
``current'' results, use \function{cmp.cmp()} instead of the version
|
|
|
|
defined in this module, or use \function{statcache.forget()} to
|
|
|
|
invalidate the appropriate entries.
|