The recent commit 570b1935e7db9913a2eb9084b6f1adc0d07a36cc dramatically slowed down the generation of the agenda on my machine when org-agenda-dimmed-blocked-tasks and org-enforce-todo-dependencies are both set to t. There seem to be an extraordinary number of calls to org-entry-blocked-p and org-entry-get. Here's are the first several lines of profiling information from a custom agenda command that has both of the settings above enabled: --8<---------------cut here---------------start------------->8--- org-agenda-redo 1 7.827560172 7.827560172 org-agenda-run-series 2 7.8218210500 3.9109105250 org-let 3 7.20083237 2.4002774566 org-agenda-finalize 4 6.844503497 1.7111258742 org-agenda-dim-blocked-tasks 1 6.699442204 6.699442204 org-entry-blocked-p 9935 5.7348475660 0.0005772367 org-block-todo-from-children-or-siblings-or-parent 9935 4.0232743180 0.0004049596 org-entry-get 20138 1.5084527930 7.490...e-05 org-get-todo-state 47077 1.2677654579 2.692...e-05 org-entry-is-done-p 29892 1.0612141059 3.550...e-05 org-back-to-heading 89176 0.7644088809 8.571...e-06 org-property--local-values 10203 0.6607707660 6.476...e-05 org-outline-level 45939 0.6526133970 1.420...e-05 org-entry-is-todo-p 16970 0.6425987680 3.786...e-05 [snip] --8<---------------cut here---------------end--------------->8--- By way of comparison here is the profiling information for the same custom agenda command prior to the commit. Notice the 139 calls to org-agenda-blocked-p compared to the 9935 above: --8<---------------cut here---------------start------------->8--- org-agenda-redo 1 2.16555618 2.16555618 org-agenda-run-series 1 2.164402155 2.164402155 org-let 2 1.563410317 0.7817051585 org-agenda-finalize 4 1.212033806 0.3030084515 org-agenda-dim-blocked-tasks 1 1.170204698 1.170204698 org-let2 3 0.591343907 0.1971146356 org-agenda-prepare 4 0.3530507439 0.0882626859 org-agenda-prepare-buffers 1 0.327547542 0.327547542 org-agenda-list-stuck-projects 1 0.326917219 0.326917219 org-tags-view 1 0.326905634 0.326905634 org-scan-tags 50 0.3165784299 0.0063315685 org-todo-list 1 0.225206383 0.225206383 org-set-regexps-and-options 50 0.198799971 0.0039759994 org--setup-collect-keywords 50 0.1926802859 0.0038536057 org-agenda-finalize-entries 3 0.183284111 0.0610947036 org-element-at-point 100 0.1775049539 0.0017750495 org-element--parse-to 100 0.174980767 0.0017498076 org-agenda-highlight-todo 157 0.1738833260 0.0011075371 org-element--cache-put 101 0.165917795 0.0016427504 org-agenda-get-day-entries 100 0.063475662 0.0006347566 org-refresh-category-properties 50 0.045959423 0.0009191884 org-agenda-list 1 0.03918709 0.03918709 org-refresh-properties 100 0.034035472 0.0003403547 org-agenda-get-todos 50 0.033929208 0.0006785841 org-entry-blocked-p 139 0.0336150219 0.0002418346 org-outline-level 3906 0.0276959979 7.090...e-06 org-refresh-stats-properties 50 0.0250132949 0.0005002658 org-block-todo-from-children-or-siblings-or-parent 139 0.0247768829 0.0001782509 org-agenda-get-deadlines 50 0.0235243889 0.0004704877 org-get-tags-at 308 0.0202068740 6.560...e-05 org-refresh-effort-properties 50 0.018845043 0.0003769008 org-get-priority 157 0.014716273 9.373...e-05 org-up-heading-safe 236 0.0143668880 6.087...e-05 org-get-todo-state 853 0.0134622469 1.578...e-05 org-agenda-mode 1 0.012866926 0.012866926 org-agenda-align-tags 1 0.011609398 0.011609398 org-agenda-skip-eval 680 0.0115281949 1.695...e-05 org-agenda-skip-entry-when-regexp-matches-in-subtree 125 0.0108022420 8.641...e-05 org-entry-get 145 0.0084927020 5.857...e-05 --8<---------------cut here---------------end--------------->8--- Minimal recipe to replicate: a) Config file --8<---------------cut here---------------start------------->8---