This issue also affects the speed of notification processing as for that, the same hierarchy needs to be computed. The computation should be much faster now as the quadratic loop should be linear now unless the user doesn't just watch many pages but has also excluded many pages (which seems unlikely as this won't happen automatically).
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.