Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

optimizations in URL implementation #1833

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

Open
davidhewitt wants to merge 1 commit into main
base: main
Choose a base branch
Loading
from dh/url-efficiency
Open

Conversation

@davidhewitt
Copy link
Contributor

@davidhewitt davidhewitt commented Oct 11, 2025

Change Summary

Generally reduces use of needless .to_string() calls around the URL code, to avoid temporary strings. Done as a follow up to #1829

Related issue number

N/A

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with this pydantic-core (except for expected changes)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Copy link

codspeed-hq bot commented Oct 11, 2025

CodSpeed Performance Report

Merging #1833 will not alter performance

Comparing dh/url-efficiency (85cc156) with main (1e1c962)

Summary

✅ 163 untouched

} else {
Cow::Owned(encoded)
}
fn encode_userinfo_component(value: &str) -> impl fmt::Display + use<'_> {
Copy link
Member

Choose a reason for hiding this comment

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

Seems like the use<..> syntax is only available in Rust 2024.

Copy link
Contributor Author

@davidhewitt davidhewitt Oct 13, 2025

Choose a reason for hiding this comment

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

Yep we need MSRV 1.82.

There is debate in PyO3 to increase MSRV to 1.83 PyO3/pyo3#5486, so let's just wait on this until 2.13 perhaps.

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

Reviewers

@Viicos Viicos Viicos left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /