]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
storage.py : replace 4294967295 with 2**32-1: python does constant folding, I measure...
authorBrian Warner <warner@allmydata.com>
Sat, 10 Jan 2009 02:52:22 +0000 (19:52 -0700)
committerBrian Warner <warner@allmydata.com>
Sat, 10 Jan 2009 02:52:22 +0000 (19:52 -0700)
commit167742c2b3d477a66bed8b7e852308bda88ffca1
treeeb5b647f117cd76caae76f0132b8bf15fbbbfc59
parentc7cd3f38e7b8768dc983c860ebc8d978c02da854
storage.py : replace 4294967295 with 2**32-1: python does constant folding, I measured this statement as taking 50ns, versus the 400ns for the call to min(), or the 9us required for the 'assert not os.path.exists' syscall
src/allmydata/storage.py