Skip to content

Changes

Started 1 day 21 hr ago
Took 1 min 17 sec on Builder

Summary

  1. Speed up locale color formatting and skill name matching (#5330) (commit: 68c5908) (details)
Commit 68c5908341ed55f7ec89a28ec18026445aa9aa8c by github
Speed up locale color formatting and skill name matching (#5330)

addColors applied 44 regex replaceAll calls per localized string even though every pattern is a literal quote; plain String.replace does the same substitutions without compiling a pattern per call. matchSkill now caches successful name lookups keyed by lowercased input, invalidated via the locale generation counter, so repeated lookups skip the per-skill localized name scans.
(commit: 68c5908)
The file was modifiedsrc/main/java/com/gmail/nossr50/locale/LocaleLoader.java (diff)
The file was modifiedsrc/main/java/com/gmail/nossr50/util/skills/SkillTools.java (diff)