Repository navigation
Conversation
Merging this PR will improve performance by 15.51%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ |
Simulation | discover_workspace_from_all_members |
153.6 ms | 133 ms | +15.51% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing zaniebot/url-persistence-comparison-20261014 (1af9c47) with main (a03d0cd)
Footnotes
-
35 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
zanieb
pushed a commit
to astral-sh/uv
that referenced
this pull request
Oct 16, 2026
`SafeUrl` currently serializes the full URL, so fields can persist credentials without an explicit choice. Add a type-level policy that defaults to `Unserializable`; `Stripped` removes sensitive userinfo while retaining the complete query, and `Raw` serializes the full parsed URL. `Display` and `Debug` continue to redact passwords and recognized sensitive query parameters. Index URLs in `pylock.toml` and publish URLs in tool receipts use `Stripped`. The inherent `serialize` and `serialize_internal` methods prevent those method calls from falling through `Deref` to `Url`. Ordinary Serde serialization of `SafeUrl` requires `Stripped` or `Raw`; the internal serialization method requires `Raw`. The serialization policies are an alternative to the wrapper types in #22356, #22357, and #22358, combined in astral-sh#2712 for comparison. `Stripped` and `Raw` follow the same serialization rules as `PersistSafeUrl` and `CredentialPersistingUrl`. Using `SafeUrl<P>` carries the policy through `VerbatimUrl`, stored fields, and transformations such as `join`; shared implementations are generic over the policy. The aforementioned stack also changes how `DirectUrl` metadata is parsed and written; those changes are outside this PR's scope. See also #22600 (comment) Stacked on #22599. Co-authored-by: zaniebot <[email protected]>
astral-automations-bot
Bot
force-pushed
the
zaniebot/url-persistence-comparison-20261014
branch
from
October 16, 2026 15:31
169acf7 to
1af9c47
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Combine astral-sh#22356, astral-sh#22357, and astral-sh#22358 for comparison with #2711.
PersistSafeUrlserializes URLs without sensitive userinfo while retaining the complete query string;CredentialPersistingUrlserializes the complete parsed URL. Remove implicit serialization fromDisplaySafeUrlandVerbatimUrlso ordinary Serde serialization requires an explicit persistence policy.