Skip to content

Prune nameString to reduce runtime size of Name #1806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 2, 2025

Conversation

thomasvl
Copy link
Collaborator

Now that the bytecode is used for messages, description always has to construct a temporary String so we can just lean into that and shrink the size of Name by removing the second property completely.

@thomasvl thomasvl requested a review from allevato June 30, 2025 18:53
@thomasvl thomasvl added the 🔨 semver/patch No public API change. label Jun 30, 2025
thomasvl added 2 commits June 30, 2025 15:55
Now that the bytecode is used for generation, all entries that end up calling here
will be using the raw buffer anyways, so skip trying to use the cached string.
Shrinks up the memory usage of the runtime.
@thomasvl thomasvl merged commit a0c68e0 into apple:main Jul 2, 2025
12 checks passed
@thomasvl thomasvl deleted the prune_NameString branch July 2, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants