| 
									
										
										
										
											1999-06-17 15:11:35 +00:00
										 |  |  | \section{\module{cmpcache} --- | 
					
						
							|  |  |  |          Efficient file comparisons} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | \declaremodule{standard}{cmpcache} | 
					
						
							| 
									
										
										
										
											2000-12-01 15:25:23 +00:00
										 |  |  | \sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il} | 
					
						
							| 
									
										
										
										
											1999-06-17 15:11:35 +00:00
										 |  |  | \modulesynopsis{Compare files very efficiently.} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-01-25 17:29:18 +00:00
										 |  |  | \deprecated{1.6}{Use the \refmodule{filecmp} module instead.} | 
					
						
							| 
									
										
										
										
											1999-10-26 16:31:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-06-17 17:40:52 +00: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 15:11:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-10-20 04:24:09 +00:00
										 |  |  | \note{Using the \refmodule{statcache} module to provide | 
					
						
							| 
									
										
										
										
											1999-06-17 17:40:52 +00:00
										 |  |  | \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 | 
					
						
							| 
									
										
										
										
											2001-10-20 04:24:09 +00:00
										 |  |  | invalidate the appropriate entries.} |