[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1440: drop-upload: don't perform redundant uploads when a file is quickly modified three or more times
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Apr 7 22:25:27 UTC 2015
#1440: drop-upload: don't perform redundant uploads when a file is quickly
modified three or more times
-------------------------------------+-------------------------------------
Reporter: davidsarah | Owner: daira
Type: enhancement | Status: assigned
Priority: major | Milestone: undecided
Component: code-frontend-drop- | Version: 1.8.2
upload | Keywords: drop-upload performance
Resolution: | otf-magic-folder-objective2
Launchpad Bug: |
-------------------------------------+-------------------------------------
Comment (by dawuud):
I thought of a solution. Would something along these lines be acceptable?
:
We use an explicit dequeue implementation and we utilize a helping hash
map to track currently queued files/dirs. Each time we add a file to the
queue we first check if that file is already in the hashmap. We only add a
file to the queue when it is not already in the hashmap. Likewise we must
remove it from the hashmap once that queue item has been processed.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1440#comment:7>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list