RE: [R] R and C++ compared with only C++

2003-07-22 Thread Liaw, Andy
-help Subject: Re: [R] R and C++ compared with only C++ As always, it depends on your priorities and motivation. If that extra 10% is important and if you can be bothered writing the C++, then putting the whole thing into C++ may be worth it. If not then you could let R deal with the input

[R] R and C++ compared with only C++

2003-07-21 Thread Francisco J Molina
My computer is a pentium 4 running at 2.4 GHz. My R is 1.7.1 I have written a program in R that calls C++. The program spends most of the time in C++ ( 90% ). R basically deals with output and input. How slower can this be compared with the program I would get from rewriting everything in C++?

Re: [R] R and C++ compared with only C++

2003-07-21 Thread Andrew C. Ward
As always, it depends on your priorities and motivation. If that extra 10% is important and if you can be bothered writing the C++, then putting the whole thing into C++ may be worth it. If not then you could let R deal with the input and output. Regards, Andrew C. Ward CAPE Centre Department

Re: [R] R and C++ compared with only C++

2003-07-21 Thread Richard A. O'Keefe
Francisco J Molina [EMAIL PROTECTED] asked: I have written a program in R that calls C++. The program spends most of the time in C++ ( 90% ). ... How slower can this be compared with the program I would get from rewriting everything in C++? Suppose the