Skip to content

Conversation

@ericproulx
Copy link
Contributor

@ericproulx ericproulx commented Dec 17, 2025

This PR adds a condition valid_encoding? before calling scrub. The latter generates a copy of self even if the string does not contain invalid bytes. In the end, since most strings are valid, its worth checking before duplicating

@ericproulx ericproulx force-pushed the valid_encoding_before_scrubing branch from d0db02f to e761135 Compare December 17, 2025 21:12
@ericproulx ericproulx requested a review from dblock December 17, 2025 21:13
@ericproulx ericproulx merged commit bf90e95 into master Dec 19, 2025
108 of 109 checks passed
@dblock dblock deleted the valid_encoding_before_scrubing branch December 19, 2025 23:17
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.

3 participants