Skip to content

Conversation

@RblSb
Copy link
Contributor

@RblSb RblSb commented Jan 14, 2026

Current inlining doesn't do much i think, since it does not inline any Stbtt__buf allocations (or any other objects), and they cannot be inlined in this implementation anyway, since all bufs are assigned to var object fields at the end. So it's only generates a lot of code.

By removing some inlining i reduced Hello Kha sample kha.js from 948 KiB to 789 KiB, so it's 100+ KiB difference for html5 projects.

@RobDangerous RobDangerous merged commit be1ebd9 into Kode:main Jan 14, 2026
23 checks passed
@RblSb RblSb deleted the ttf-inlines branch January 14, 2026 10: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.

2 participants