git-annex (10.20221105) UNRELEASED; urgency=medium
* Support quettabyte and yottabyte.
- * Sped up the initial scanning for annexed files by 15%.
+ * Sped up the initial scanning for annexed files by 21%.
-- Joey Hess <id@joeyh.name> Fri, 18 Nov 2022 12:58:06 -0400
queueDb :: SqlPersistM () -> WriteHandle -> IO ()
queueDb a (WriteHandle h) = H.queueDb h checkcommit a
where
- -- commit queue after 1000 changes
- checkcommit sz _lastcommittime = pure (sz > 1000)
+ -- commit queue after 10000 changes
+ checkcommit sz _lastcommittime = pure (sz > 10000)
-- Insert the associated file.
-- When the file was associated with a different key before,
I benchmarked it, and using insertUnique is no faster, but using insert is.
This would be a 15% speed up.
-
-Update: Implemented this optimisation.
"""]]
--- /dev/null
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 14"""
+ date="2022-11-18T17:26:03Z"
+ content="""
+Implemented the two optimisations discussed above, and init in that
+repository dropped from 24 seconds to 19 seconds, a 21% speedup.
+"""]]