diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-03 11:25:13 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-03 11:25:13 +0000 |
commit | 458120dd40db6b4df55a4e96b650e16798ef06a0 (patch) | |
tree | 8f82685be24fef97e715c6f5ca4c68d34d5074ee /sys/src/cmd/python/Doc/lib/libcmpcache.tex | |
parent | 3a742c699f6806c1145aea5149bf15de15a0afd7 (diff) |
add hg and python
Diffstat (limited to 'sys/src/cmd/python/Doc/lib/libcmpcache.tex')
-rw-r--r-- | sys/src/cmd/python/Doc/lib/libcmpcache.tex | 21 |
1 files changed, 21 insertions, 0 deletions
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.} |