Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
org-agenda-prepare-buffers: Avoid excessive memory allocation
* lisp/org.el (org-agenda-prepare-buffers): Avoid creating huge lists when computing `org-todo-keywords-for-agenda', `org-done-keywords-for-agenda', and `org-todo-keyword-alist-for-agenda'. Instead of using `append' in every single agenda file + `org-uniquify' on a giant lists at the end, check and add unique list elements in place. This patch reduces load on Emacs GC when the number of agenda files is large.
- Loading branch information