Skip to content
Prev 165974 / 398502 Next

R badly lags matlab on performance?

On Sun, Jan 4, 2009 at 4:50 PM, <luke at stat.uiowa.edu> wrote:
I'd think another problem is call-by-need.  I suppose inlining or
batch analyzing groups of functions helps there.
Well, I haven't looked at the code, but if I'm interpreting "assembled
and looked up as strings on every call" correctly, this means taking
names, expanding them to strings, concatenating them, re-interning
them, then looking up the value.  That sounds pretty awful to me both
in the sense of being inefficient and of being ugly.
Have you considered using Java bytecodes and taking advantage of
dynamic compilers like Hotspot?  They often do a good job in cases
like this by assuming that types are fairly predictable from one run
to the next of a piece of code.  Or is the Java semantic model too
different?
Agreed entirely!
I agree. The 1.5 isn't a big deal at all.

           -s