Completed refactoring of filesystem indexing

This commit is contained in:
Roberto Rosario
2011-02-08 01:35:24 -04:00
parent 5b9369057b
commit 0674dedd4a
5 changed files with 146 additions and 89 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ from django.utils.translation import ugettext
from documents.conf.settings import STAGING_DIRECTORY
HASH_FUNCTION = lambda x: hashlib.sha256(x).hexdigest()
#TODO: Do benchmarks
#func = lambda:[StagingFile.get_all() is None for i in range(100)]
#t1=time.time();func();t2=time.time();print '%s took %0.3f ms' % (func.func_name, (t2-t1)*1000.0)