Project

General

Profile

Patch #44423 » 0002-Memoize-user-lookups-in-parse_redmine_links.patch

Marius BĂLTEANU, 2026-09-06 23:38

View differences:

app/helpers/application_helper.rb
1352 1352
            end
1353 1353
          elsif sep == "@"
1354 1354
            name = remove_double_quotes(identifier)
1355
            u = User.visible.find_by_login(name.downcase)
1355
            @users_by_login ||= {}
1356
            u = @users_by_login.fetch(name.downcase) { |k| @users_by_login[k] = User.visible.find_by_login(k) }
1356 1357
            link = link_to_mention(u, obj, only_path: only_path) if u
1357 1358
          end
1358 1359
        end
(2-2/2)