From 458120dd40db6b4df55a4e96b650e16798ef06a0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 3 May 2011 11:25:13 +0000 Subject: add hg and python --- sys/src/cmd/python/Doc/lib/libcmpcache.tex | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sys/src/cmd/python/Doc/lib/libcmpcache.tex (limited to 'sys/src/cmd/python/Doc/lib/libcmpcache.tex') diff --git a/sys/src/cmd/python/Doc/lib/libcmpcache.tex b/sys/src/cmd/python/Doc/lib/libcmpcache.tex new file mode 100644 index 000000000..899147749 --- /dev/null +++ b/sys/src/cmd/python/Doc/lib/libcmpcache.tex @@ -0,0 +1,21 @@ +\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 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). + +\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.} -- cgit v1.2.3