Skip to content
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

disable perf and unicode features for regex #47

Merged
merged 1 commit into from Sep 5, 2019

Conversation

justinrlle
Copy link
Contributor

The last version of regex exposes now more features to help reduce bloat/binary size. You can read the full announcement here: rust-lang/regex#613
I've disabled the perf and unicode features, dividing by two the overhead of regex, and removing 4 dependencies.
I've got the following results for binary size:

  • without regex: 2.8M (539k stripped)
  • with regex v1.2: 4M (1.7M stripped)
  • with regex v1.3 with only std feature: 3.2M (903K stripped)

@RazrFalcon
Copy link
Owner

Nice.

Rust technically allows non-Latin identifiers, but I'm not sure anyone actually uses them.

@RazrFalcon RazrFalcon merged commit 4a4dc84 into RazrFalcon:master Sep 5, 2019
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.

None yet

2 participants