mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
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:
commit
b1bceaa063
2 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue