Re: [R] Speed up R

From: bogdan romocea <br44114_at_gmail.com>
Date: Thu, 21 Jun 2007 11:41:52 -0400


Don't rush to buy new hardware yet (other than perhaps more RAM for your existing desktop). First of all you should make sure that your R code can't be made any faster. (I've seen cases where careful re-writes increased speed by a factor of 10 or more.) There are some rules (such as pre-allocate enough memory for vectors/lists, use matrices instead of data frames etc) and tools (?Rprof, ?Sys.time) that can help a lot. Check the manuals and the archives, for example http://article.gmane.org/gmane.comp.lang.r.general/48800

> -----Original Message-----
> From: r-help-bounces_at_stat.math.ethz.ch
> [mailto:r-help-bounces_at_stat.math.ethz.ch] On Behalf Of Robert McFadden
> Sent: Tuesday, June 19, 2007 4:51 PM
> To: r-help_at_stat.math.ethz.ch
> Subject: [R] Speed up R
>
> Dear R Users,
> I hope that there is someone who has an experience with a
> problem that I
> describe below and will help me.
> I must buy new desktop computer and I'm wondering which
> processor to choose
> if my only aim is to speed up R. I would like to reduce a
> simulation time -
> sometimes it takes days. I consider buying one of them (I'm
> working under
> Win XP 32 bit):
> 1. Intel Core2 Duo E6700 2.67 GHz
> 2. Dual-Core Intel Xeon processor 3070 - 2,66 GHz
> 3. AMD Athlon 64 X2 6000+
> Or simple Pentium 4?
>
> I'm very confused because I'm not sure whether R takes
> advantage dual-core
> or not. If not, probably Athlon would be better, wouldn't be?
> I would appreciate any help.
> Rob
>
> ______________________________________________
> R-help_at_stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 21 Jun 2007 - 15:52:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Jun 2007 - 16:32:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.