Skip to content

S4 method execution time

2 messages · Daniel Murphy, Brian Ripley

#
On Fri, 30 Apr 2010, Daniel Murphy wrote:

            
Maybe Rprof?   That is certainly the tool I would use, and it is 
described in 'Writing R Extensions'.

But we do know that S4 methods do have a significant overhead: OTOH 
there is caching going on and so a lot of this overhead is on first 
use.  So you may find that your 'toy' test does not scale to a real 
problem (surely you have difficulty perceiving 60ms, literally the 
blink of an eye?).