Skip to content
Prev 6790 / 21312 Next

[Bioc-devel] [devteam-bioc] Use Imports instead of Depends in the DESCRIPTION files of bioconductor packages.

On 12/31/2014 08:47 AM, Peng Yu wrote:
Generally, yes, it seems like this should at least give the illusion of fast load.

4 seconds is not long in comparison to the time spent in an interactive analysis 
session or processing sequence-scale data.

Recognizing that package load times can be substantial may influence some 
approaches, e.g., avoiding unnecessary (re)loading of packages during 
development, preferring multi-core to socket or other parallelization 
strategies, using persistent R sessions when responding to web service requests.

In MBASED, the DESCRIPTION file has

Depends: RUnit, BiocGenerics, BiocParallel, GenomicRanges

RUnit almost certainly belongs in Suggests: (no use to the end user; not used by 
R code except during package build / check) but this likely has minimal impact 
on load time; the major cost is the S4-heavy GenomicRanges and it's dependencies.

During start-up a reasonable (e.g., 25%) performance benefit can be realized by 
telling R to allocate additional memory up-front; on my Linux box I have

$ alias Rdev
alias Rdev='R_LIBS_USER=/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/devel 
/home/mtmorgan/bin/R-devel/bin/R --no-save --quiet --min-vsize=2048M 
--min-nsize=45M'

Martin