stackmuncher / stm_app

This software engineer profile builder turns your code into a detailed list of skills for an online directory of software developers.
https://stackmuncher.com
GNU Affero General Public License v3.0
22 stars 1 forks source link

Binary size reduction #34

Open rimutaka opened 2 years ago

rimutaka commented 2 years ago

Cargo bloat

 File  .text    Size             Crate Name
 0.3%   1.1% 44.5KiB             regex <regex::exec::ExecNoSync as regex::re_trait::RegularExpression>::captures_read_at
 0.3%   1.0% 41.0KiB      stackmuncher stackmuncher::cmd_munch::run::{{closure}}
 0.3%   0.9% 37.1KiB      stackmuncher stackmuncher::config::AppConfig::new::{{closure}}
 0.3%   0.8% 32.5KiB                h2 h2::codec::framed_read::decode_frame
 0.2%   0.7% 26.9KiB                h2 h2::proto::connection::DynConnection<B>::recv_frame
 0.2%   0.6% 24.4KiB             regex regex::exec::ExecBuilder::build
 0.2%   0.6% 23.7KiB      stackmuncher stackmuncher::cmd_config::get_validated_gist::{{closure}}
 0.2%   0.6% 23.4KiB  stackmuncher_lib stackmuncher_lib::processors::process_file::{{closure}}
 0.2%   0.5% 19.8KiB stackmuncher_lib? <stackmuncher_lib::report::_::<impl serde::de::Deserialize for stackmuncher_li...
 0.2%   0.5% 19.5KiB              http http::header::name::parse_hdr
28.9%  90.7%  3.6MiB                   And 10608 smaller methods. Use -n N to show more.
31.8% 100.0%  4.0MiB                   .text section size, the file size is 12.5MiB

Experiments

--target x86_64-unknown-linux-gnu