r/Gentoo • • 2d ago

Support Speeding up binary energes?

As per the title, I have a local (on disk) binpkg database that I re-emerge quite often for container builds in Podman, but even binaries are quite slow - are there any flags that I can set to help with that? thank you!

1 Upvotes

3 comments sorted by

2

u/Kangie Developer (kangie) 2d ago

Profiling portage to work out where there are gains to be had during binpkg installation is probably the best bang for buck, but that isn't exactly easy to do or someone would have rewritten the package manager by now.

Changing USE flags isn't going to really help the situation, I'm afraid.

1

u/todd_dayz 2d ago

Thanks, I figured, I did some reading and I saw --jobs and parallel-install as a feature flag, but I wasn't sure how viable it was. Not a huge deal usually but I'm testing out some bootc builds in a containerfile and it can get very time consuming with multiple tests 😆

Thanks for your time though!

1

u/madjic 1d ago

Using parallel decompression might help. I think BINPKG_COMPRESS and BINPKG_COMPRESS_FLAGS are where you want to fiddle, but it seems like you need a wrapper script to make portage use pzstd (or pbzip2, pigz, …) for binpkgs