[R] Optimizing compilation of R
Rainer M Krug
r.m.krug at gmail.com
Fri Nov 12 15:51:29 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I know this has been asked before, but I can not find it - so my apologies.
I want to compile R myself, to optimize it for speed. There is a small
section (a few lines actually) in the R-admin manual (Compilation-flags)
which states that the LDFLAGS "on recent systems
‘'-Bdirect,--hash-style=both,-Wl,-O1'’ is recommended".
But I set LDFLAGS, and it is actually slightly slower then the Ubuntu
binary.
So are there any other ressources (probably HotTos?) on how I can tune
the compilation of R to make it faster?
I am using Maverick, and R info is below:
############
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=en_US.utf8 LC_NUMERIC=C
[3] LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8
[5] LC_MONETARY=C LC_MESSAGES=en_US.utf8
[7] LC_PAPER=en_US.utf8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_2.12.0
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 2
minor 12.0
year 2010
month 10
day 15
svn rev 53317
language R
version.string R version 2.12.0 (2010-10-15)
############
Thanks,
Rainer
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa
Tel: +33 - (0)9 53 10 27 44
Cell: +27 - (0)8 39 47 90 42
Fax (SA): +27 - (0)8 65 16 27 82
Fax (D) : +49 - (0)3 21 21 25 22 44
Fax (FR): +33 - (0)9 58 10 27 44
email: Rainer at krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzdVHEACgkQoYgNqgF2egqGEQCfSH59J4RgjDS8mcDjDWVEW/Fi
ri4An16SQEP6b3VCGGZVWEi9RVC+dzWp
=nyqn
-----END PGP SIGNATURE-----
More information about the R-help
mailing list