Show
Ignore:
Timestamp:
2006-10-14 01:48:43 (4 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
add_stat_caching
convert_revision:
svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/branches/add_stat_caching@571
Message:
Let ftputil use the stat cache in ftp_stat_cache.py. With the script
sandbox/list_dir_test.py, this gives a reduction of the running time
to about a tenth!

Warning: The code isn't production-ready yet. For example, the cache
code isn't thouroughly tested and has no expiration strategy at all.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ftp_stat_cache.py

    r544 r548  
    4545        self._cache = {} 
    4646        self._debug = False 
    47         self.enabled = False 
     47        self.enabled = True 
    4848 
    4949    def _debug_output(self, text):