Skip to content

Avoid format machinery for concatenating the base identifier all the time - #3670

Merged
badboy merged 1 commit into
mainfrom
avoid-format-machinery-for-con/vnwrluvnmwoq
Oct 19, 2026
Merged

badboy merged 1 commit into
mainfrom
avoid-format-machinery-for-con/vnwrluvnmwoq

Conversation

@badboy

@badboy badboy commented Oct 1, 2026

Copy link
Copy Markdown
Member

In a recent profile we looked at the format machinery showed up. So what if we just avoid that, and also avoid small allocations (by doing one appropriately sized?)

I ran this teeny tiny microbenchmark earlier locally (on my M4 mac), of course nowhere close to the real thing: https://gist.github.com/badboy/f33a2867f0bb32105bd14dfa7aa1a9a6

We should gather a profile on Desktop to proof it's worth it.

@badboy

This comment was marked as outdated.

@badboy
badboy force-pushed the avoid-format-machinery-for-con/vnwrluvnmwoq branch from f0aac96 to a26c588 Compare October 5, 2026 14:26
@badboy
badboy force-pushed the avoid-format-machinery-for-con/vnwrluvnmwoq branch from a26c588 to c324b0e Compare October 5, 2026 14:34
@badboy
badboy marked this pull request as ready for review October 13, 2026 09:05
@badboy
badboy requested a review from a team as a code owner October 13, 2026 09:05
@badboy
badboy requested review from chutten and removed request for a team October 13, 2026 09:05

@chutten chutten left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We're saving the change to CMD to move category.name to codegen time for a later go?

@chutten

chutten commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

(Also, seeing as we don't know whether this will be noticeable, I'm guessing that's why there's no CHANGELOG?)

@badboy

badboy commented Oct 19, 2026

Copy link
Copy Markdown
Member Author

We're saving the change to CMD to move category.name to codegen time for a later go?

That would be #3684.

(Also, seeing as we don't know whether this will be noticeable, I'm guessing that's why there's no CHANGELOG?)

Yeah, this is not a user-visible change. It's purely internal formatting.

@badboy
badboy merged commit 00150a5 into main Oct 19, 2026
57 of 58 checks passed
@badboy
badboy deleted the avoid-format-machinery-for-con/vnwrluvnmwoq branch October 19, 2026 13:52
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