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:
Dimitri Fontaine 2017-08-23 15:58:39 +02:00
parent 4f9eb8c06b
commit 4fcb24f448

View File

@ -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)))