Giter VIP home page Giter VIP logo

Comments (4)

RazrFalcon avatar RazrFalcon commented on June 24, 2024 1

Filtering was added in the v0.5

from cargo-bloat.

RazrFalcon avatar RazrFalcon commented on June 24, 2024

Group by

You want an additional flag that will merge generic methods and traits? The data required for such merging doesn't even parsed now, so it will take some time to implement.

Filtering

I'm using grep for this at the moment. But yes, the current filter doesn't sum up the filtered data.

from cargo-bloat.

stepancheg avatar stepancheg commented on June 24, 2024

You want an additional flag that will merge generic methods and traits?

Yes, an additional flag that will merge all instantiations all generic functions/methods together.

E. g.

  • merge all HashMap<K, V>::new together to key std::collections::hash::map::HashMap::new
  • and merge all Vec<T>::extend::<I> together to key core::iter::traits::Extend::extend

The data required for such merging doesn't even parsed now, so it will take some time to implement.

OK. I can try to implement it.

Filtering
I'm using grep for this at the moment. But yes, the current filter doesn't sum up the filtered data.

Like cargo bloat -n 9999999999 | grep re | head -20? That works, but having a flag is probably slightly more convenient.

from cargo-bloat.

RazrFalcon avatar RazrFalcon commented on June 24, 2024

I can try to implement it.

Well, basically I need a Rust symbol parser. And such a library doesn't exist at the moment. I planned to write it myself, but I don't have enough time.

-n 9999999999

You can use -n 0.

from cargo-bloat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.