Merge pull request #327 from xor-xor/fix-gc-threshold-bump

Fix for bumping gc-cons-threshold while opening notebooks
This commit is contained in:
John Miller 2018-08-26 10:56:40 -04:00 committed by GitHub
commit b1bceaa063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

@ -625,7 +625,6 @@ Use `ein:log' for debugging and logging."
(lexical-let ((current-gc-cons-threshold gc-cons-threshold))
(defun ein:gc-prepare-operation ()
(setq current-gc-cons-threshold gc-cons-threshold)
(ein:log 'debug "[GC-PREPARE-OPERATION] Setting cons threshold to %s." (* current-gc-cons-threshold 10000) )
(setq gc-cons-threshold (* current-gc-cons-threshold 10000)))

View file

@ -203,6 +203,7 @@ this value."
(setq buffer-undo-list t))
(ein:worksheet-bind-events ws)
(ein:worksheet-set-kernel ws)
(ein:gc-complete-operation)
(ein:log 'info "Worksheet %s is ready" (ein:worksheet-full-name ws))))
(defun ein:worksheet-pp (ewoc-data)