Use a bigger start size for the hash table

This might help when there's lots of derivations to insert.
This commit is contained in:
Christopher Baines 2021-10-03 15:28:40 +01:00
parent b28d338de7
commit ba9bcbf735

View file

@ -1786,7 +1786,10 @@ INNER JOIN derivation_source_files
(if (null? derivation-file-names)
'()
(let* ((derivations-count (length derivation-file-names))
(derivation-ids-hash-table (make-hash-table derivations-count)))
(derivation-ids-hash-table (make-hash-table
;; Account for more derivations in
;; the graph
(* 2 derivations-count))))
(simple-format
#t "debug: derivation-file-names->derivation-ids: processing ~A derivations\n"
derivations-count)