Skip to content

chore: optimize pwa icon generation#23934

Merged
caalador merged 2 commits intomainfrom
chore/optimize-pwa-generation
Mar 20, 2026
Merged

chore: optimize pwa icon generation#23934
caalador merged 2 commits intomainfrom
chore/optimize-pwa-generation

Conversation

@caalador
Copy link
Contributor

Do not collect all generated icons
into memory, but instead write
each icon to disc flushing the buffer
to not use so much memory.

Do not collect all generated icons
into memory, but instead write
each icon to disc flushing the cache
to not use so much memory.
@github-actions
Copy link

github-actions bot commented Mar 18, 2026

Test Results

 1 388 files  ±0   1 388 suites  ±0   1h 26m 11s ⏱️ - 1m 27s
 9 927 tests ±0   9 856 ✅ ±0  71 💤 ±0  0 ❌ ±0 
10 400 runs  ±0  10 320 ✅ ±0  80 💤 ±0  0 ❌ ±0 

Results for commit ea48ded. ± Comparison against base commit daf13bc.

♻️ This comment has been updated with latest results.

mcollovati
mcollovati previously approved these changes Mar 18, 2026
Copy link
Collaborator

@mcollovati mcollovati left a comment

Choose a reason for hiding this comment

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

Excellent improvement.
I wonder if we can make drawIconImage a static method in PwaIcon or some utility class to avoid code duplication.

@caalador
Copy link
Contributor Author

Made the change so all draws are using the same method.

@sonarqubecloud
Copy link

@caalador caalador merged commit 0e82b64 into main Mar 20, 2026
50 of 52 checks passed
@caalador caalador deleted the chore/optimize-pwa-generation branch March 20, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants