summaryrefslogtreecommitdiff
path: root/doc/bugs/get_-J___34__fails__34___to_get_files_with_the_same_key/comment_1_5b3879d1bb992ddf2aafa3fcb41b968f._comment
blob: 11786bb777a287a9fc6ea4d86d9b40ab8334e6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2017-09-29T16:47:18Z"
 content="""
The only way I can see to improve this would be to keep track of which
keys already have a thread working on them, and avoid a second thread
working on the same key.

I've started this in the avoid-dup-threads branch.

Getting key information to commandAction would be quite the plumbing job;
there are something like 50 call sites.

More difficult, the key is not known yet when commandAction is called in a
lot of cases, and looking up the key redundantly will slow down all
git-annex scanning. Seems that nontrivial changes would be needed to every
command.
"""]]