emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode fd604c1 95/96: Added garbage collection modif


From: Christian Johansson
Subject: [elpa] externals/phps-mode fd604c1 95/96: Added garbage collection modification to grammar automation again
Date: Fri, 29 Oct 2021 11:15:08 -0400 (EDT)

branch: externals/phps-mode
commit fd604c1f6cbcbc7591354f2b14905daaf9f61a19
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added garbage collection modification to grammar automation again
---
 admin/phps-mode-automation.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/admin/phps-mode-automation.el b/admin/phps-mode-automation.el
index a494209..8947b42 100644
--- a/admin/phps-mode-automation.el
+++ b/admin/phps-mode-automation.el
@@ -36,6 +36,11 @@
   (if (fboundp 'parser-generator-lr-export-to-elisp)
       (progn
 
+        ;; 256 MB before garbage collection, seems to speed up generation
+        (setq
+         gc-cons-threshold
+         (* 1024 1024 256))
+
         (let* ((global-declaration 
(phps-mode-automation-parser-generator--global-declaration))
                (attributes phps-mode-automation-parser-generator--attributes)
                (grammar (phps-mode-automation-parser-generator--grammar))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]