Archive for August, 2010

Speeding up parentheses (and lots more) in R

As I noted here, enclosing sub-expressions in parentheses is slower in R than enclosing them in curly brackets. I now know why, and I’ve modified R to reduce (but not eliminate) the slowness of parentheses. The modification speeds up many other operations in R as well, for an average speedup of something like 5% for programs that aren’t dominated by large built-in operations like matrix multiplies. (more…)

2010-08-19 at 1:07 pm 14 comments

Two Surpising Things about R

I see that it’s been over a year since my last post!  I have a backlog of blog post ideas, but something else always seems to have higher priority.   Today, though, I have some interesting (and useful) things to say about R, which I discovered in the last few days, and which shouldn’t take long to blog about.  Of course, some other people may already be quite familiar with these things.  Or maybe not…

First up, a useful feature of R that I hadn’t realized existed, which comes with a surprising gain in efficiency.  Second, something surprisingly slow about R’s implementation of a very common operation. (more…)

2010-08-15 at 12:33 am 38 comments


Calendar

August 2010
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Posts by Month

Posts by Category