duckdb-r icon indicating copy to clipboard operation
duckdb-r copied to clipboard

any tricks to speed up install time

Open jangorecki opened this issue 2 years ago • 4 comments
trafficstars

Any known tricks to speed up install time? Also this that happens during R CMD check

* checking whether package 'duckdb' can be installed ...
 [35m/35m] OK

35 minutes is quite a blocker for comfortably testing changes...

jangorecki avatar Oct 03 '23 19:10 jangorecki

Are you talking about just in the GitHub actions? Or locally? Locally you can try to use CCACHE

https://dirk.eddelbuettel.com/blog/2017/11/27/

https://stackoverflow.com/q/45512586/946850

You can also enable parallel builds with MAKE="make -j{ncores}" R CMD check . or MAKE="make -j{ncores}" R CMD INSTALL .

This has made my local development time much faster

Tmonster avatar Oct 04 '23 10:10 Tmonster

Sounds good, will test next time when installing. What seems reasonable is to include it somewhere on the readme, so users can find that straight away.

jangorecki avatar Oct 04 '23 10:10 jangorecki

Sorry if this is not possible as I am not familiar with the internal structure of this package, but I am wondering if it is possible to download and use the pre-compiled libduckdb as the arrow package does (on Linux).

eitsupi avatar Oct 04 '23 14:10 eitsupi

Or at least reused compiled code when doing changes only R or Rd files

jangorecki avatar Oct 04 '23 15:10 jangorecki