Skip to content

Reallocs#307

Open
kornelski wants to merge 3 commits intomainfrom
reallocs
Open

Reallocs#307
kornelski wants to merge 3 commits intomainfrom
reallocs

Conversation

@kornelski
Copy link
Contributor

The compiler has been copying every single string from the Ast, but it doesn't have to.

I wanted a more clear API on BytesCow to see what copies and what doesn't. The accidentally-public BytesCow has been hidden and deprecated for a long time now, so since I'm changing its "public" API I've made it properly private.

And finally, to my disappointment making an obviously-fixed-size Box<[…]> still compiles to building a Vec with a potential realloc afterwards, so I've undone this "optimization".

@kornelski kornelski requested review from a team, Noah-Kennedy, jasnell and orium as code owners March 11, 2026 18:06
@kornelski
Copy link
Contributor Author

the semver-checks failure is expected and intentional. I've fixed set_name, so set_name_str previous replacement can be hidden now.

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.

1 participant