Improve rendering performance of Banzai
Related issues:
- gitlab-org/gitlab-ce#14315
- gitlab-org/gitlab-ce#13651
TODO:
-
Banzai::Filter::ExternalIssueReferenceFilter#call
callsProject#default_issues_tracker?
which runs a query on every call. Memoizing this only works if theProject
instance is shared between instances of this filter. Either way it should at most only run this method once. -
Fix the two failing specs -
Clean of the various call
methods in the filters where I inlined methods -
Remove the replace_XXX
methods in ReferenceFilter now that they're no longer used.