-10.92% binray shrink
Build has big ram use though low on ressources here.
More tests required before publishing on how 2.
Thks 4 ur attention, interest & support.




Code: Select all
-Clto=fat
-Cembed-bitcode=yesCode: Select all
-Zdylib-ltoCode: Select all
dev-lang/rust
Installed versions: 1.77.1(stable/1.77)^t(08:53:51 15/04/2024)(clippy doc miri nightly profiler rust-analyzer rust-src rustfmt system-bootstrap verify-sig wasm -big-endian -debug -dist -llvm-libunwind -lto -parallel-compiler -system-llvm -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2" LLVM_TARGETS="WebAssembly X86 -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -XCore -Xtensa")


Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!

No I'm focusing on binary size only.Zucca wrote:Have you measured compilation time and ram usage with these optimizations on and off?
About 12.51% size shrink.Zucca wrote:And say, for example helvum, how much in bytes you save on disk?
No idea. Focusing on ram/disk savings.Zucca wrote:I guess performance gains vary greatly between programs? ... If it's even measurable.
... and in bytes?CaptainBlood wrote:About 12.51% size shrink.Zucca wrote:And say, for example helvum, how much in bytes you save on disk?
Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!

------------------Zucca wrote:... and in bytes?CaptainBlood wrote:About 12.51% size shrink.Zucca wrote:And say, for example helvum, how much in bytes you save on disk?
Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!

Sounds like your mind was made already, i.e. before my last post.Zucca wrote:Seems like not worth for me.
Maybe for some SBC or embedded system at some corner cases. Of if I'd want to shrink my initramfs, which does not contain any rust packages at the moment anyways.
Code: Select all
acer /usr/bin # upx --ultra-brute helvum
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2024
UPX 4.2.3 Markus Oberhumer, Laszlo Molnar & John Reiser Mar 27th 2024
File size Ratio Format Name
-------------------- ------ ----------- -----------
961040 -> 324620 33.78% linux/amd64 helvum
Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!

Still at the planning stage here for more than decade...Zucca wrote:initramfs...

Code: Select all
lto-no: -rwxr-xr-x 1 root root 11650080 août 6 00:08 /usr/bin/broot
lto: -rwxr-xr-x 1 root root 11699232 août 6 00:22 /usr/bin/broot
rust 1.80.1 instead of 1.79.0 is improving:CaptainBlood wrote:-rwxr-xr-x 1 root root 961040 août 2 00:03 /usr/bin/helvum
Code: Select all
-rwxr-xr-x 1 root root 932080 août 15 14:57 /usr/bin/helvum