mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 10:56:10 +02:00
Reintroduce manual Garbage Collect in SBCL.
It seems that SBCL still needs some help in deciding when to GC with very large values. In a test case with a “data” column averaging 375kB (up to about 3 MB per datum), it allows much larger batch size and prefetch rows settings without entering lldb.
This commit is contained in:
parent
4f9eb8c06b
commit
4fcb24f448
@ -167,7 +167,11 @@
|
||||
(let ((batch-seconds
|
||||
(send-current-batch unqualified-table-name)))
|
||||
(incf seconds batch-seconds))
|
||||
(setf current-batch (make-batch)))
|
||||
(setf current-batch (make-batch))
|
||||
|
||||
;; give a little help to our friend, now is a good time
|
||||
;; to garbage collect
|
||||
#+sbcl (sb-ext:gc :full t))
|
||||
|
||||
(format-row-in-batch copy row current-batch
|
||||
preprocessor pre-formatted)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user