Skip to content
代码片段 群组 项目
提交 a2f3675d 编辑于 作者: Marc Shaw's avatar Marc Shaw 提交者: Nick Thomas
浏览文件

Memoize the source_branch_exists method for a MR

Each time this will make a redis call, which is expensive if called
enough times. This was an issue when serializing large diffs for a merge
request.

Clear the memoized source_branch_exists on MR update
Clear memoized variables before proceeding with checks

Issue: gitlab.com/gitlab-org/gitlab/-/issues/209786
Merge Request: gitlab.com/gitlab-org/gitlab/-/merge_requests/34516
上级 0d34cf28
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册