[R-SIG-Mac] configuring R-2.6.0 for speed

Simon Urbanek simon.urbanek at r-project.org
Mon Aug 27 23:46:35 CEST 2007


James,

On Aug 27, 2007, at 5:35 PM, James Bullard wrote:

> I have checked out R-devel from subversion and configured it with  
> the following command
>
> ./configure --with-blas='-framework vecLib' CFLAGS="-g -O2 - 
> march=nocona" CXXFLAGS="-g -O2 -march=nocona" FFLAGS="-g -O2 - 
> march=nocona" FCFLAGS="-g -O2 -march=nocona"
>
> followed by make && make install. This works in the sense that R  
> starts up fine. However, my session seems to be very slow compared  
> to R-2.5.1 (which I had installed from the binaries at CRAN). Slow  
> means for example that loading a large RData file takes much  
> longer. Is there any configure flag I am missing? What are the  
> exact configure command used to build the CRAN binary?
>

I don't think it should be any slower - actually is should be faster,  
because the CRAN binary has memory profiling enabled. There were some  
changes in R-devel that can make it slower, but not noticeably I  
suppose. Can you test the CRAN binary of R-devel (from http:// 
r.research.att.com) to see if it exhibits the same slow-down?

FWIW the full flags used for the CRAN i386 build are the following:

CC="gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"  
CXX="g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"  
F77="gfortran-4.0 -arch i386  -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk" FC="gfortran-4.0 -arch i386  -isysroot /Developer/ 
SDKs/MacOSX10.4u.sdk" CPPFLAGS=-msse3 CFLAGS="-g -O2 -std=gnu99 - 
march=nocona" CXXFLAGS="-g -O2 -march=nocona" FFLAGS="-g -O2 - 
march=nocona" FCFLAGS="-g -O2 -march=nocona" --enable-BLAS-shlib -- 
with-system-zlib --enable-memory-profiling

Using the universal SDK supposedly results in faster executables, but  
I didn't test it ...

Cheers,
Simon


> (I am using the latest version of OS X on an Intel MacBook with the
> newest Xcode and the gfortran from CRAN).
>
> Jim
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>



More information about the R-SIG-Mac mailing list