Skip to content

Conversation

@dbanty
Copy link

@dbanty dbanty commented May 10, 2025

regex is quite a heavy dependency, and this crate is the only reason my project needs to pull it in.

This PR removes the dependency by using std Rust code instead. This also speeds up percent encoding quite a bit (when benchmarking an existing test):

  • old: bench_literal_expansion: 10,046.55 ns/iter (+/- 477.77)
  • new: bench_literal_expansion: 85.61 ns/iter (+/- 3.48)

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.

1 participant