[R-pkg-devel] speeding up package code/build/test cycle

Tomas Kalibera tom@@@k@||ber@ @end|ng |rom gm@||@com
Fri Jun 25 08:22:02 CEST 2021


On 6/24/21 11:31 PM, Duncan Murdoch wrote:
> On 24/06/2021 4:52 p.m., Dirk Eddelbuettel wrote:
>>
>> On 24 June 2021 at 16:31, Duncan Murdoch wrote:
>> | This does the full compile again, so it's slow.
>>
>> ccache fixes that (as it has its own cache). It also works on macOS.
>
> I haven't tried ccache:  shouldn't "make" handle that kind of thing?

In principle, yes, and I think one should not need ccache for package 
development when make files are designed well.

But there is a case for ccache. If for whatever reason one decides to do 
a "clean" build in "make" sense often, ccache can help. For example when 
you are working on the build system itself, on the make file or 
compilation options.

MXE (used to build the experimental UCRT toolchain for Windows) uses 
ccache when building external software, there clean re-builds are a 
common task (newer versions of that software, slightly changed build 
configuration) and some builds take forever when the projects are large.

ccache could help also when switching between code versions in the same 
workspace (via a versioning system), or when building same files in 
different directories (and not handled by the build system).

Tomas

>
> Duncan Murdoch
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



More information about the R-package-devel mailing list