Skip to content

perf: Memoize TeamTemplate.getRawOrNil#7777

Merged
Rathoz merged 3 commits into
mainfrom
tt-memoize
Jul 8, 2026
Merged

perf: Memoize TeamTemplate.getRawOrNil#7777
Rathoz merged 3 commits into
mainfrom
tt-memoize

Conversation

@mbergen

@mbergen mbergen commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

#6624 swapped all direct extension calls to use TT.getRawOrNil. This means lots of additional processing, as redirects are resolved, strings are gsub'd, and when the first call fails there's even a second extension call, leading to bad runtime.

This memoizes the function twice using the proposed memoize2 functionality

How did you test this change?

dev/ttmemo on https://liquipedia.net/valorant/VCL/2026/EMEA/Last_Chance_Qualifier/Play-In
After:
grafik

Before:
grafik

@mbergen mbergen requested review from a team as code owners July 6, 2026 13:13
@mbergen

This comment was marked as outdated.

hjpalpha

This comment was marked as outdated.

@mbergen mbergen changed the base branch from main to feat-memoize2 July 6, 2026 18:22

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm assuming latest version is tested

Base automatically changed from feat-memoize2 to main July 7, 2026 12:10
@Rathoz Rathoz merged commit 3ec4ba3 into main Jul 8, 2026
7 checks passed
@Rathoz Rathoz deleted the tt-memoize branch July 8, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants