(internal): lower default value of org-roam-db-gc-threshold (#872)

The high value has been reported to cause significant slowdowns, so we
reset the default, and add documentation for its customization instead.
Ref #834
This commit is contained in:
Jethro Kuan
2020-06-28 15:16:14 +08:00
committed by GitHub
parent 610d4ced85
commit e33c3bcb3f
4 changed files with 56 additions and 3 deletions

View File

@ -45,7 +45,7 @@
(pcase (benchmark-run 1 (org-roam-db-build-cache t))
(`(,time ,gcs ,time-in-gc)
(message "Elapsed time: %fs (%fs in %d GCs)" time time-in-gc gcs)
(expect time :to-be-less-than 70))))
(expect time :to-be-less-than 90))))
(it "builds quickly without change"
(pcase (benchmark-run 1 (org-roam-db-build-cache))
(`(,time ,gcs ,time-in-gc)