Skip to content

Speed up install fixture loading#2352

Open
sevein wants to merge 1 commit into
qa/2.xfrom
dev/speed-up-installer
Open

Speed up install fixture loading#2352
sevein wants to merge 1 commit into
qa/2.xfrom
dev/speed-up-installer

Conversation

@sevein
Copy link
Copy Markdown
Member

@sevein sevein commented May 13, 2026

I've been finding the installer a bit slow in my local development environment, likely made more noticeable by shared-volume filesystem overhead. While profiling tools:purge --demo, I found a couple of small fixture-loading fixes that significantly reduce the time spent loading the initial data during install/purge.

Measured tools:purge --demo improving from about 54s before this optimization pass to about 10s after it. This is more noticeable on slower shared filesystems, but it still avoids repeated i18n work on faster environments too.

Avoid recomputing access warning translations for every rights basis term
during install/purge. Translate the warning strings in one batched pass and
reuse the results for each generated access-statement setting.

Keep QubitI18N::getTranslations() as a fresh lookup for compatibility, and
add a batched helper for callers that need multiple strings translated
across all languages.

Also fix a stray leading '-' before the fixture loader object reference check.

Measured tools:purge --demo improving from about 54s before this
optimization pass to about 10s after it.
@sevein sevein requested review from anvit, melaniekung and sbreker May 13, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant