Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease compilation time for updated packages #207

Open
Le-Kat opened this issue May 22, 2023 · 1 comment
Open

Decrease compilation time for updated packages #207

Le-Kat opened this issue May 22, 2023 · 1 comment

Comments

@Le-Kat
Copy link

Le-Kat commented May 22, 2023

Since rua copies all packages to the .cache dir for building, they're naturally deleted when it's done installing. This leads to updates of the same package recompiling everything from scratch, whereas merging from upstream and then compiling would get the latest version of the package and would only recompile the files that have changed.

Is there any chance that rua could try to preserve the compilation for future updates of the package? Or could it maby be a user option for all packages/per package to preserve the build dir once it's done?

@cplir-c
Copy link

cplir-c commented May 13, 2024

In general, incremental compilation results in a less-optimized binary but faster build times. Usually it's used for developers rebuilding an application alot when working on it.

A more usual way you could achieve this would be to use ccache (or sccache) to cache file build objects depending on your language (C, C++, obj-C, obj-c++ for ccache, c/c++ or rust for sccache).
Not sure about other languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants