[Rd] On R performance
jtalbot at cs.stanford.edu
Sat Mar 10 16:39:44 CET 2012
> Thanks for the clarification Justin. What about the S4 classes
> and methods? The design resembles CLOS, and currently this
> is interpreted R code. Have you addressed performance issues
> associated with this? What relative impact does this have compared
> with other optimizations like vectorization?
Sorry for the delay in my response. My posts keep getting stuck in moderation.
I'll be honest that I haven't looked at S4 performance yet. That's the
big part of R's semantics that I haven't implemented yet. I chose to
delay this part largely because the language still feels very unstable
around the object systems.
I know R takes a lot of flak for having multiple incompatible object
systems. It's frustrating that that one object system hasn't come
dominate--they all have their pluses and minuses. However, one
has still been very successful. There are lots of different OO
(see this review from my office mate
(caution some strong language)). I think part of the reason this has
considered part of the core language, leaving both the language
implementers and the OO library designers flexibility to experiment
without blocking each other.
R has taken the opposite approach...incorporating multiple object
systems into the core language, with the associated maintenance load
on R-Core...and I'm not sure that it's been as profitable. Perhaps
there are good reasons for this though. I'll admit that I haven't
thought through this area much.
More information about the R-devel