Skip to content

internal: Make CompletionItem label and lookup fields SmolStrs #10699

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 1 commit into from
Nov 7, 2021

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Nov 5, 2021

This replaces a bunch of String clones with SmolStr clones, though also makes a few parts a bit more expensive(mainly things involving format!ted strings as labels).

@Veykril
Copy link
Member Author

Veykril commented Nov 7, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 7, 2021

@bors bors bot merged commit 2c0f433 into rust-lang:master Nov 7, 2021
@lnicola
Copy link
Member

lnicola commented Nov 7, 2021

Just wondering, did this end up having a measurable effect?

@Veykril
Copy link
Member Author

Veykril commented Nov 7, 2021

Not really no, but I imagine that is because some of the code paths require an extra clone of the data again now that should be possible to be removed as well though.

Merged it now neverthless as I don't think this added any real complexity after all.

@Veykril Veykril deleted the so-smol branch November 25, 2021 15:36
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