Twitter | Pretraživanje | |
Andrew Gallant
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).
This PR is primarily intended to close #583. However, an additional motivation to these changes was to permit users of regex to shrink its dependency tree, should they wish to give up runtime perfo...
GitHub GitHub @github
Reply Retweet Označi sa "sviđa mi se" More
Doug Tangren 🐑 2. ruj
Odgovor korisniku/ci @burntsushi5
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.
Reply Retweet Označi sa "sviđa mi se"
Andrew Gallant 3. ruj
Odgovor korisniku/ci @softprops
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. :-(
Reply Retweet Označi sa "sviđa mi se"
bailey.yaml 🇿🇦 3. ruj
Odgovor korisniku/ci @burntsushi5
Thanks for making awesome tools and libraries, and making the amazing magic behind them more accessible.
Reply Retweet Označi sa "sviđa mi se"
jer 5. ruj
Odgovor korisniku/ci @burntsushi5
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!
Reply Retweet Označi sa "sviđa mi se"
Wesley Moore 3. ruj
Odgovor korisniku/ci @burntsushi5
Wow amazing work!
Reply Retweet Označi sa "sviđa mi se"
Ana (Hoverbear / 飘飘熊) 3. ruj
Odgovor korisniku/ci @burntsushi5
Great job!
Reply Retweet Označi sa "sviđa mi se"
jer 2. ruj
Odgovor korisniku/ci @burntsushi5
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.
Reply Retweet Označi sa "sviđa mi se"