diff options
| author | Stefan Kangas | 2021-04-22 04:11:02 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-04-22 04:11:02 +0200 |
| commit | 71b14f28068d9327eb236b8577ccbddd65e3b38b (patch) | |
| tree | 6bee12dd2666dc81648579ac52f2b197c3d756ed | |
| parent | 94de186686662462d391dd23a4f15d43a7a33bb2 (diff) | |
| download | emacs-71b14f28068d9327eb236b8577ccbddd65e3b38b.tar.gz emacs-71b14f28068d9327eb236b8577ccbddd65e3b38b.zip | |
Avoid lowering gc-cons-threshold
* lisp/cedet/semantic/wisent/comp.el (wisent--compile-grammar):
* lisp/international/mule-cmds.el (ucs-names):
* lisp/progmodes/ebrowse.el (ebrowse-read):
* test/src/coding-tests.el (benchmark-decoder): Avoid lowering
gc-cons-treshold.
| -rw-r--r-- | lisp/cedet/semantic/wisent/comp.el | 2 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/ebrowse.el | 2 | ||||
| -rw-r--r-- | test/src/coding-tests.el | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lisp/cedet/semantic/wisent/comp.el b/lisp/cedet/semantic/wisent/comp.el index b96fa400d95..a87ed518909 100644 --- a/lisp/cedet/semantic/wisent/comp.el +++ b/lisp/cedet/semantic/wisent/comp.el | |||
| @@ -3427,7 +3427,7 @@ where: | |||
| 3427 | (if (wisent-automaton-p grammar) | 3427 | (if (wisent-automaton-p grammar) |
| 3428 | grammar ;; Grammar already compiled just return it | 3428 | grammar ;; Grammar already compiled just return it |
| 3429 | (wisent-with-context compile-grammar | 3429 | (wisent-with-context compile-grammar |
| 3430 | (let* ((gc-cons-threshold 1000000)) | 3430 | (let* ((gc-cons-threshold (max gc-cons-threshold 1000000))) |
| 3431 | (garbage-collect) | 3431 | (garbage-collect) |
| 3432 | (setq wisent-new-log-flag t) | 3432 | (setq wisent-new-log-flag t) |
| 3433 | ;; Parse input grammar | 3433 | ;; Parse input grammar |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 578d97bcc0a..b99db46e458 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -3047,7 +3047,7 @@ on encoding." | |||
| 3047 | (#x1D000 . #x1FFFF) | 3047 | (#x1D000 . #x1FFFF) |
| 3048 | ;; (#x20000 . #xDFFFF) CJK Ideograph Extension A, B, etc, unused | 3048 | ;; (#x20000 . #xDFFFF) CJK Ideograph Extension A, B, etc, unused |
| 3049 | (#xE0000 . #xE01FF))) | 3049 | (#xE0000 . #xE01FF))) |
| 3050 | (gc-cons-threshold 10000000) | 3050 | (gc-cons-threshold (max gc-cons-threshold 10000000)) |
| 3051 | (names (make-hash-table :size 42943 :test #'equal))) | 3051 | (names (make-hash-table :size 42943 :test #'equal))) |
| 3052 | (dolist (range ranges) | 3052 | (dolist (range ranges) |
| 3053 | (let ((c (car range)) | 3053 | (let ((c (car range)) |
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el index cafdb3b8289..7524c280f25 100644 --- a/lisp/progmodes/ebrowse.el +++ b/lisp/progmodes/ebrowse.el | |||
| @@ -794,7 +794,7 @@ and TREE is a list of `ebrowse-ts' structures forming the class tree." | |||
| 794 | (ebrowse-hs-version header) ebrowse-version-string)) | 794 | (ebrowse-hs-version header) ebrowse-version-string)) |
| 795 | ;; Read Lisp objects. Temporarily increase `gc-cons-threshold' to | 795 | ;; Read Lisp objects. Temporarily increase `gc-cons-threshold' to |
| 796 | ;; prevent a GC that would not free any memory. | 796 | ;; prevent a GC that would not free any memory. |
| 797 | (let ((gc-cons-threshold 2000000)) | 797 | (let ((gc-cons-threshold (max gc-cons-threshold 2000000))) |
| 798 | (while (not (progn (skip-chars-forward " \t\n") (eobp))) | 798 | (while (not (progn (skip-chars-forward " \t\n") (eobp))) |
| 799 | (let* ((root (read (current-buffer))) | 799 | (let* ((root (read (current-buffer))) |
| 800 | (old-root-ptr (ebrowse-class-in-tree root tree))) | 800 | (old-root-ptr (ebrowse-class-in-tree root tree))) |
diff --git a/test/src/coding-tests.el b/test/src/coding-tests.el index 0bdcff22ce5..0309b2b1ad6 100644 --- a/test/src/coding-tests.el +++ b/test/src/coding-tests.el | |||
| @@ -359,7 +359,7 @@ | |||
| 359 | (delete-region (point-min) (point)))))) | 359 | (delete-region (point-min) (point)))))) |
| 360 | 360 | ||
| 361 | (defun benchmark-decoder () | 361 | (defun benchmark-decoder () |
| 362 | (let ((gc-cons-threshold 4000000)) | 362 | (let ((gc-cons-threshold (max gc-cons-threshold 4000000))) |
| 363 | (insert "Without optimization:\n") | 363 | (insert "Without optimization:\n") |
| 364 | (dolist (files test-file-list) | 364 | (dolist (files test-file-list) |
| 365 | (dolist (file (cdr files)) | 365 | (dolist (file (cdr files)) |