branch: externals/phps-mode
commit fd604c1f6cbcbc7591354f2b14905daaf9f61a19
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
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))