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
  • _test_ftputil.py

    r539 r548  
    122122        def getmtime(self, file_name): 
    123123            return self._mtime 
     124        def abspath(self, path): 
     125            return "/home/sschwarzer/_ftputil_sync_" 
    124126        # needed for `isdir` in `FTPHost.remove` 
    125127        def isfile(self, path):