Skip to content

avoid needless to_string(x).size() #252

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
Mar 1, 2023

Conversation

lemire
Copy link
Member

@lemire lemire commented Mar 1, 2023

PR on top #250

We can replace to_string(x).size() which might allocate a new string and then destroy it, by a fast function that does not allocate any memory and requires few instructions.

@lemire lemire requested a review from anonrig March 1, 2023 17:01
@anonrig anonrig merged commit ccfc04e into feat-add-url-components Mar 1, 2023
@anonrig anonrig deleted the dlemire/avoid_needless_to_string branch March 1, 2023 17:06
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