| Rev | Line | |
|---|
| [3225] | 1 | \section{\module{cmpcache} ---
|
|---|
| 2 | Efficient file comparisons}
|
|---|
| 3 |
|
|---|
| 4 | \declaremodule{standard}{cmpcache}
|
|---|
| 5 | \sectionauthor{Moshe Zadka}{[email protected]}
|
|---|
| 6 | \modulesynopsis{Compare files very efficiently.}
|
|---|
| 7 |
|
|---|
| 8 | \deprecated{1.6}{Use the \refmodule{filecmp} module instead.}
|
|---|
| 9 |
|
|---|
| 10 | The \module{cmpcache} module provides an identical interface and similar
|
|---|
| 11 | functionality as the \refmodule{cmp} module, but can be a bit more efficient
|
|---|
| 12 | as it uses \function{statcache.stat()} instead of \function{os.stat()}
|
|---|
| 13 | (see the \refmodule{statcache} module for information on the
|
|---|
| 14 | difference).
|
|---|
| 15 |
|
|---|
| 16 | \note{Using the \refmodule{statcache} module to provide
|
|---|
| 17 | \function{stat()} information results in trashing the cache
|
|---|
| 18 | invalidation mechanism: results are not as reliable. To ensure
|
|---|
| 19 | ``current'' results, use \function{cmp.cmp()} instead of the version
|
|---|
| 20 | defined in this module, or use \function{statcache.forget()} to
|
|---|
| 21 | invalidate the appropriate entries.}
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.