speed up keys database writes
authorJoey Hess <joeyh@joeyh.name>
Mon, 31 May 2021 18:56:14 +0000 (14:56 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 31 May 2021 19:01:00 +0000 (15:01 -0400)
commiteb6f6ff9b8b78f92dd4244440ec714f6a3ec4e11
tree54819180b06b092fda0cc36b6fcb57cdfab5adaa
parent0f54e5e0ae73b89bb6743bf298915619da00c3f4
speed up keys database writes

There seems to be no reason to check the time here. I think it was
inherited from code in Database.Fsck, which does have a reason to commit
every few minutes. Removing that syscall speeds up a git-annex init
in a repo with 100000 annexed files by about 3 seconds.

Sponsored-by: Dartmouth College's Datalad project
Database/Fsck.hs
Database/Keys/SQL.hs
doc/todo/Avoid_lengthy___34__Scanning_for_unlocked_files_...__34__.mdwn
doc/todo/Avoid_lengthy___34__Scanning_for_unlocked_files_...__34__/comment_13_440624874dd3697dd538655765f2b6a2._comment [new file with mode: 0644]