Skip to content

chore: optimize ImageRandomizer#100

Merged
mcdurdin merged 1 commit into
mainfrom
chore/optimize-image-randomizer
Jun 18, 2026
Merged

chore: optimize ImageRandomizer#100
mcdurdin merged 1 commit into
mainfrom
chore/optimize-image-randomizer

Conversation

@mcdurdin

Copy link
Copy Markdown
Member

I ran a profiler against help.keyman.com pages and found that the ImageRandomizer was surprisingly slow, due to its glob call. I opted to hard code the image filenames and use random_int to select an image as a more efficient alternative.

If we change the logo images, we'll need to update the list of filenames here.

Test-bot: skip

I ran a profiler against help.keyman.com pages and found that the
ImageRandomizer was surprisingly slow, due to its `glob` call. I opted
to hard code the image filenames and use `random_int` to select an image
as a more efficient alternative.

If we change the logo images, we'll need to update the list of filenames
here.

Test-bot: skip
@keymanapp-test-bot

Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

@mcdurdin mcdurdin requested a review from Meng-Heng June 18, 2026 09:02
@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S31 milestone Jun 18, 2026
@github-actions github-actions Bot added the chore label Jun 18, 2026
@mcdurdin mcdurdin requested a review from ermshiperete June 18, 2026 09:02
@github-project-automation github-project-automation Bot moved this to Todo in Keyman Jun 18, 2026
@mcdurdin mcdurdin merged commit 1a7c103 into main Jun 18, 2026
4 checks passed
@mcdurdin mcdurdin deleted the chore/optimize-image-randomizer branch June 18, 2026 09:36
@github-project-automation github-project-automation Bot moved this from Todo to Done in Keyman Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants