21 lines · 916 B · TeX
RawDownload
\section{\module{cmpcache} ---         Efficient file comparisons} \declaremodule{standard}{cmpcache}\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}\modulesynopsis{Compare files very efficiently.} \deprecated{1.6}{Use the \refmodule{filecmp} module instead.} The \module{cmpcache} module provides an identical interface and similarfunctionality as the \refmodule{cmp} module, but can be a bit more efficientas it uses \function{statcache.stat()} instead of \function{os.stat()}(see the \refmodule{statcache} module for information on thedifference). \note{Using the \refmodule{statcache} module to provide\function{stat()} information results in trashing the cacheinvalidation mechanism: results are not as reliable.  To ensure``current'' results, use \function{cmp.cmp()} instead of the versiondefined in this module, or use \function{statcache.forget()} toinvalidate the appropriate entries.}