Re: [R] R Running slow on Ubuntu

2014-03-16 Thread Mitchell Maltenfort
http://www.cybaea.net/Blogs/Faster-R-through-better-BLAS.html any help? On Mar 16, 2014 9:38 PM, "Russell Bainer" wrote: > Thanks guys. I'll look into this and tell you if I come up with anything. > > -R > > > On Saturday, March 15, 2014, Jeff Newmiller > wrote: > > > Comparing with an unspecifi

Re: [R] R Running slow on Ubuntu

2014-03-16 Thread Russell Bainer
Thanks guys. I'll look into this and tell you if I come up with anything. -R On Saturday, March 15, 2014, Jeff Newmiller wrote: > Comparing with an unspecified benchmark makes answering this too hard. > Following instructions in the Posting Guide will lead to more accurate Q > and A. > > Note

Re: [R] R Running slow on Ubuntu

2014-03-15 Thread Shige Song
Installing the openbals library may help. Shige On Sat, Mar 15, 2014 at 12:00 PM, Jeff Newmiller wrote: > Comparing with an unspecified benchmark makes answering this too hard. > Following instructions in the Posting Guide will lead to more accurate Q > and A. > > Note that you may not need to

Re: [R] R Running slow on Ubuntu

2014-03-15 Thread Jeff Newmiller
Comparing with an unspecified benchmark makes answering this too hard. Following instructions in the Posting Guide will lead to more accurate Q and A. Note that you may not need to compile if you have not as yet followed the recommendations: http://cran.r-project.org/bin/linux/ubuntu/README. The

Re: [R] R Running slow on Ubuntu

2014-03-15 Thread Augusto Cesar
My guess is that maybe the default Ubuntu binaries aren't compiled with MKL (Math Kernel Library) support and thus with no multithreading. I would suggest doing a quick research on how to re-compile R with MKL support and maybe you'll be good to go. On Fri, Mar 14, 2014 at 9:45 PM, Russell Bainer

[R] R Running slow on Ubuntu

2014-03-15 Thread Russell Bainer
Hi All, I've run across an odd phenomenon and I am wondering if someone might be able to provide insight as to what is going on. I'm running some R code that was provided by a collaborator, who is not a very experienced R programmer (e.g., the code is functional but not very efficient). When I run

Re: [R] Running *slow*

2011-10-07 Thread thomas.chesney
Making a bit more sense now: "If you are translating code into R that has a double for loop, think." The R Inferno, Page 18. -- View this message in context: http://r.789695.n4.nabble.com/Running-slow-tp3878093p3881951.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Running *slow*

2011-10-07 Thread thomas.chesney
Gerrit, Looks like it does and in less than--an incredible--one minute! Thank you! -- View this message in context: http://r.789695.n4.nabble.com/Running-slow-tp3878093p3881588.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] Running *slow*

2011-10-07 Thread Gerrit Eichner
Hi, Thomas, if I'm not completely mistaken Dat2 <- match( t( Dat), ltable) should do what you want. Hth -- Gerrit On Fri, 7 Oct 2011, thomas.chesney wrote: Thank you Michael and Patrick for your responses. Michael - your code ran in under 5 minutes, which I find stunning, and Patrick I hav

Re: [R] Running *slow*

2011-10-07 Thread thomas.chesney
Thank you Michael and Patrick for your responses. Michael - your code ran in under 5 minutes, which I find stunning, and Patrick I have sent the Inferno doc to the copier for printing and reading this weekend. I now have 8 million values in my lookup table and want to replace each value in Dat wit

Re: [R] Running *slow*

2011-10-06 Thread R. Michael Weylandt
Patrick is right, most of the time is probably taken up for the reasons documented in the (masterful) R Inferno, namely the rbind() calls. There is another problem though and it gets at the very core of R, and for that matter, all interpreted languages that I'm familiar with. I'll give a fairly el

Re: [R] Running *slow*

2011-10-06 Thread Patrick Burns
Probably most of the time you're waiting for this you are in Circle 2 of 'The R Inferno'. If the values are numbers, you might also be in Circle 1. On 06/10/2011 13:37, Thomas wrote: Anyone got any hints on how to make this code more efficient? An early version (which to be fair did more than t

Re: [R] Running *slow*

2011-10-06 Thread R. Michael Weylandt
?unique x <- matrix(c(1:6, 6:1),ncol=2) x.temp <- x dim(x.temp) <- NULL unique(x.temp) Michael On Thu, Oct 6, 2011 at 8:37 AM, Thomas wrote: > Anyone got any hints on how to make this code more efficient? An early > version (which to be fair did more than this one is) ran for 330 hours and >

[R] Running *slow*

2011-10-06 Thread Thomas
Anyone got any hints on how to make this code more efficient? An early version (which to be fair did more than this one is) ran for 330 hours and produced no output. I have a two column table, Dat, with 12,000,000 rows and I want to produce a lookup table, ltable, in a 1 dimensional matrix