|
@burntsushi5 | |||||
|
This PR adds several features to the `regex` crate that let you trim the fat. In my experiments, binary size overhead drops from 1.3M to 332K, compile times decrease by about 2x and the entire dependency tree shrinks to a single crate (regex-syntax). github.com/rust-lang/rege…
|
||||||
|
||||||
|
Doug Tangren 🐑
@softprops
|
2. ruj |
|
Very cool. I'm curious what your approach is for discovering what things to make optional. This kind of attention to tradeoff details is wonderful.
|
||
|
|
||
|
Andrew Gallant
@burntsushi5
|
3. ruj |
|
I've been working on a blog post about dependency selection, and I think answering this kind of question is definitely part of it. I've been having trouble finishing blog posts lately though. I have 2 unfinished posts about other topics. :-(
|
||
|
|
||
|
bailey.yaml 🇿🇦
@justbaileym
|
3. ruj |
|
Thanks for making awesome tools and libraries, and making the amazing magic behind them more accessible.
|
||
|
|
||
|
jer
@badboy_
|
5. ruj |
|
Applied it today to our code base.
Previously -> Regex with only std feature
1.4M -> 962K
2M -> 1.4M
2.3M -> 1.6M
3 different targets, huge improvements already. Thanks for all the work on regex!
|
||
|
|
||
|
Wesley Moore
@wezm
|
3. ruj |
|
Wow amazing work!
|
||
|
|
||
|
Ana (Hoverbear / 飘飘熊)
@a_hoverbear
|
3. ruj |
|
Great job!
|
||
|
|
||
|
jer
@badboy_
|
2. ruj |
|
Oh wow, I need to try that out as soon as I’m back at work. Right now I use exactly one Regex to match ASCII characters and this might make my lib much smaller.
|
||
|
|
||