Skip to content

Only include a subset of icons in yaegicore to reduce binary size#1527

Merged
rcoreilly merged 2 commits intomainfrom
yaegi-icons
May 19, 2025
Merged

Only include a subset of icons in yaegicore to reduce binary size#1527
rcoreilly merged 2 commits intomainfrom
yaegi-icons

Conversation

@kkoreilly
Copy link
Member

Instead of including all icons in yaegicore, we only include a subset (the icons we use in docs). This reduces binary size by around 2 MB on native and 3 MB on web. That is around 700 KB on compressed wasm, which is around 5% of the total web binary size.

Fixes #1473

Copy link
Member

@rcoreilly rcoreilly left a comment

Choose a reason for hiding this comment

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

note: can extend this manual list by adding to Symbols in this package.

@rcoreilly rcoreilly merged commit 90393ed into main May 19, 2025
1 check failed
@rcoreilly rcoreilly deleted the yaegi-icons branch May 19, 2025 05:06
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.

Reduce binary sizes of yaegicore apps

2 participants