Skip to content

Remove regex dependency #2

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
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remove regex dependency #2

wants to merge 1 commit into from

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