• Stan Hu's avatar
    Memoize the maximum access level for the author of notes · 8c29b0b0
    Stan Hu authored
    In #19273, we saw that retrieving ProjectTeam#human_max_access for each
    note takes the bulk of the time when rendering certain issues or merge requests.
    We observe that most of the comments in an issue are typically done by the
    same users. This MR memoizes the max access level by user ID.
    8c29b0b0
notes_helper.rb 2.2 KB