Skip to content

[rust] Use hashbrown to create shared strings without unnecessary alloc#8995

Open
stepancheg wants to merge 1 commit intogoogle:masterfrom
stepancheg:hashbrown
Open

[rust] Use hashbrown to create shared strings without unnecessary alloc#8995
stepancheg wants to merge 1 commit intogoogle:masterfrom
stepancheg:hashbrown

Conversation

@stepancheg
Copy link
Copy Markdown

Strings are already allocated, so no need to copy them into rust allocator.

This makes shared strings cheaper, but costs complexity and dependency on hashbrown.

hashbrown is used because std HashMap does not provide access with custom hash function, custom equality etc.

This accidentally also fixes #8994.

@stepancheg
Copy link
Copy Markdown
Author

I'll CC @statxc here as someone who added #8958.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rust tests are broken on master

1 participant