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:
parent
b28d338de7
commit
ba9bcbf735
1 changed files with 4 additions and 1 deletions
|
|
@ -1786,7 +1786,10 @@ INNER JOIN derivation_source_files
|
||||||
(if (null? derivation-file-names)
|
(if (null? derivation-file-names)
|
||||||
'()
|
'()
|
||||||
(let* ((derivations-count (length 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
|
(simple-format
|
||||||
#t "debug: derivation-file-names->derivation-ids: processing ~A derivations\n"
|
#t "debug: derivation-file-names->derivation-ids: processing ~A derivations\n"
|
||||||
derivations-count)
|
derivations-count)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue