]> Sergey Matveev's repositories - btrtrc.git/commit
Remove unecessary completion "set" (#812)
authorColin Marc <hi@colinmarc.com>
Mon, 13 Feb 2023 03:26:03 +0000 (04:26 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2023 03:26:03 +0000 (14:26 +1100)
commit60fd7581e774c14a4d370b90672012b58a2739f4
tree77e595940005567da0f75f354b1045da84de3a01
parent5a185c45c08c96b5fc5c219ef1d85d9b3df9a458
Remove unecessary completion "set" (#812)

If the file has never been downloaded, complete will naturally be false. It's
not necessary to then set it false again unless it was actually claimed to be
true in the first place.

In my tests, using the boltdb completion thingy with fsync turned *on*, this
reduced the cold start for big buck bunny from multiple seconds to just a few
ms.
storage/file-piece.go