Skip to content
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

improve performance one step at a time #734

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Sep 18, 2024

work in progress.

A lot of the functions can be constexpr as well as functions that use templates can directly check them using if constexpr (param). I have some build issues, which I didn't had any time to look into it, but opening in case @lemire has some time.

@anonrig anonrig requested a review from lemire September 18, 2024 14:36
@anonrig anonrig marked this pull request as draft September 18, 2024 15:01
@@ -188,7 +188,7 @@ inline void url::copy_scheme(const ada::url &u) {
if (has_credentials()) {
output += username;
if (!password.empty()) {
output += ":" + get_password();
output += ":" + std::string(get_password());
Copy link
Member

Choose a reason for hiding this comment

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

hmmm?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was returning string& before now string view. I'll land these changes in a different PR to improve reviews

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