Performance: make filequeue not suck

This commit is contained in:
Jakob Borg
2014-01-23 16:39:12 +01:00
parent 01096fff6c
commit fc2ebc6cad
4 changed files with 55 additions and 33 deletions

View File

@@ -755,9 +755,7 @@ func (m *Model) recomputeNeed() {
m.gmut.RUnlock()
for _, ao := range toAdd {
if !m.fq.Queued(ao.n) {
m.fq.Add(ao.n, ao.remote, ao.fm)
}
m.fq.Add(ao.n, ao.remote, ao.fm)
}
for _, gf := range toDelete {
m.dq <- gf